Skip to content

Instantly share code, notes, and snippets.

@NuckChorris
Created August 29, 2013 02:22
Show Gist options
  • Select an option

  • Save NuckChorris/6373622 to your computer and use it in GitHub Desktop.

Select an option

Save NuckChorris/6373622 to your computer and use it in GitHub Desktop.
filename="$(date +"%Y-%m-%d-%H:%M:%S-$RANDOM")${1:e}"
rsync "$1" balthasar.plejeck.com:"/usr/share/nginx/html/up/$filename"
echo "http://balthasar.plejeck.com/up/$filename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment