Automatically Serve SSH Key (ASS Key)

Here’s a simple shell script to add your SSH key to your user. Remember to replaceĀ YOUR_SSH_KEY_HERE with your public key.

#!/bin/bash
# Adds SSH key to the authorized keys
# Creates missing files and folders if required

sshdir="$HOME/.ssh"
sshkeys="$HOME/.ssh/authorized_keys"
publickey="YOUR_SSH_KEY_HERE"

if [ ! -d "${sshdir}" ]; then
	mkdir ${sshdir}
	touch ${sshkeys}
	chmod 700 ${sshdir}
	chmod 600 ${sshkeys}
	if [ ! $(grep -q "${publickey}" "${sshkeys}") ]; then
		echo "${publickey}" >> ${sshkeys}
	else
		echo "Key already in authorized_keys!"
	fi
else
	echo ".ssh already exists!"

	if [ ! -f "${sshkeys}" ]; then
		touch ${sshkeys}
		chmod 600 ${sshkeys}
	else
		echo "authorized_keys already exists!"

		if [ ! $(grep -q "${publickey}" "${sshkeys}") ]; then
			echo "${publickey}" >> ${sshkeys}
		else
			echo "Key already in authorized_keys!"
		fi
	fi
fi

 

TPT – Asteroid Battle 1.0.0

This is a script for “The Powder Toy” which was ported into Lua from UserMail2345’s “Asteroid Battle Mod” for “Falling Sand Game”. The script is poorly coded and optimized as it was made to test if porting the mod was possible. It simulates a battle between the Humans (Human Colonists) and Robots (Singularity Rebellion Force) over resources in an asteroid field.

You can easily load the script using TPT’s “Script Server + Manager“.
Download: asteroid_battle.zip

Downtown Serealia

rp_downtown_serealia

My own variant of rp_downtown_v2. It includes an expanded map with a forest and open park areas.
This variant of the map contains new buildings and shops such as:

  • A Clinic
  • Church/Gov’t Building
  • Bank
  • Movie Theater
  • Two Cabins
  • Many New Shops
  • Large Beach House
  • Large Two Story Apartment
  • Extended Underground
  • Extended Beachfront
  • Forest Lake
  • Small Canal
  • Many Other Buildings

I’ve been working on the map since June of 2014 and have continued to update the map with small patches every so often. If you have any suggestions please leave a comment and I will take it into consideration.

Credit:
TopHATTwaffle – Skybox Building Models
Skotty – Underground Stairs
ThePro – Original rp_downtown_v2