Skip to content

Instantly share code, notes, and snippets.

@mwunsch
Last active August 29, 2015 14:06
Show Gist options
  • Save mwunsch/7966ea7a18883a305781 to your computer and use it in GitHub Desktop.
Save mwunsch/7966ea7a18883a305781 to your computer and use it in GitHub Desktop.
Upload from shell to http://www.puthtml.com/
puthtml ()
{
curl -F "file=@${1:--};filename=${1:-`uuidgen`.html}" \
-F "api_key=${2:-$PUTHTML_API_KEY}" \
http://www.puthtml.com/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment