Skip to content

Instantly share code, notes, and snippets.

Created August 16, 2014 02:31
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Quick and dirty alternative for when ix is down or something - Completely backend free (requires ssh/cat and a webserver) - Assumes keyless auth
SERVER_USER=<<your ssh user>>
SERVER_HOST=<<your ssh server address>>
PUBLIC_PATH="<<public url (ie https://myhost/pastes/)>>"
SERVER_PATH="<<server path (ie /var/www/pastes/)>>"
SERVER_FLAGS="<<additional flags (ex. custom ssh port)>>"
HASH=$(date +%s%N | shasum | head -c7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment