Skip to content

Instantly share code, notes, and snippets.

View lyret's full-sized avatar

Viktor Lyresten lyret

View GitHub Profile
@lyret
lyret / rcode.sh
Created September 14, 2018 07:56
Install remote "code" command on Servers
sudo wget -O /usr/local/bin/code https://raw.githubusercontent.com/aurora/rmate/master/rmate; sudo chmod a+x /usr/local/bin/code
@lyret
lyret / replaceAuthKey.sh
Created August 10, 2017 12:05
Replace a SSH key on a linux server
sed -i '\|OLDKEY|d' .ssh/authorized_keys && echo "NEWKEY" >> .ssh/authorized_keys