Skip to content

Instantly share code, notes, and snippets.

@9re
Created September 4, 2012 01:35
Show Gist options
  • Save 9re/3615629 to your computer and use it in GitHub Desktop.
Save 9re/3615629 to your computer and use it in GitHub Desktop.
upload gyazo
#!/bin/sh
#username=
#password=
#server=
#port=
#path=
browser='google-chrome'
t_file=`tempfile`.png
import $t_file
curl -F username=$username -F password=$password -F imagedata="@$t_file;filename=gyazo.com" $server:$port$path | xargs -0 $browser
rm $t_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment