Skip to content

Instantly share code, notes, and snippets.

@savonarola
Created March 13, 2012 09:58
Show Gist options
  • Save savonarola/2027934 to your computer and use it in GitHub Desktop.
Save savonarola/2027934 to your computer and use it in GitHub Desktop.
xml_grep --text_only '//original_image' <(scrot -s /tmp/imgur.png && curl --form key=YOUR_IMGUR_KEY --form image=@/tmp/imgur.png 'http://imgur.com/api/upload.xml' -s) | xsel -i -b && notify-send 'Screenshot uploaded'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment