Details on the inside.
A Pen by Seth Bergman on CodePen.
{"lastUpload":"2019-01-10T01:39:07.652Z","extensionVersion":"v3.2.4"} |
#!/bin/bash | |
############################################################################## | |
# SHORTCUTS | |
############################################################################## | |
CTRL+A # move to beginning of line | |
CTRL+B # moves backward one character | |
CTRL+C # halts the current command | |
CTRL+D # deletes one character backward or logs out of current session, similar to exit |
# linux script to add a new ssh key to a bunch of different domains to which you have ssh access | |
# key_to_add.txt is a text file containing the ssh key and should be in the same directory | |
# add valid credentials for however many domains you need to add ssh keys for | |
# domain1 to add key to | |
cat key1.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys' | |
# domain2 to add key to | |
cat key2.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys' | |
# domain3 to add key to | |
cat key3.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys' |
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/sethbergman/955f6ad392fff733a62c/raw/41c229998634df722cefdd589da121af624bf2ce/Install-Docker-on-Linux-Mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi |
Details on the inside.
A Pen by Seth Bergman on CodePen.
I hereby claim:
To claim this, I am signing this object:
git clone https://github.com/heroku/node-js-getting-started.git
cd node-js-getting-started
{"lastUpload":"2018-07-08T00:01:14.381Z","extensionVersion":"v2.9.2"} |
#!/bin/bash | |
# <UDF name="hostname" label="The hostname for the new Linode" example="apps"> | |
# <UDF name="fqdn" label="The new Linode's Fully Qualified Domain Name" example="apps.example.com"> | |
# <UDF name="adminuser" label="Username for new admin user (cannot be dokku)"> | |
# <UDF name="adminpass" label="Password for new admin user"> | |
# <UDF name="adminkey" label="SSH public key authorized for admin user (password SSH auth will be disabled)"> | |
# <UDF name="dokkukey" label="SSH public key authorized for dokku user (used when deploying apps)"> | |
# Turn off password authentication and root login for SSH |