Skip to content

Instantly share code, notes, and snippets.

@kokjo
Created March 29, 2017 22:07
Show Gist options
  • Save kokjo/911010af167c7e266b496866df41d63e to your computer and use it in GitHub Desktop.
Save kokjo/911010af167c7e266b496866df41d63e to your computer and use it in GitHub Desktop.
#!/bin/sh
WEBROOT="/path/to/web/root/on/server"
HOST="put.hostname.here"
scp "$1" "${USER}@${HOST}:${WEBROOT}$(basename "$1")"
echo "http://${HOST}/$(basename $1)"
sha256sum $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment