Skip to content

Instantly share code, notes, and snippets.

@aL3xa
Created April 25, 2012 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aL3xa/2492855 to your computer and use it in GitHub Desktop.
Save aL3xa/2492855 to your computer and use it in GitHub Desktop.
Imgur uploader
#! /bin/sh
TEXT=$(curl -F "image"=@"$1" -F "key"="a3793a1cce95f32435bb002b92e0fa5e" http://imgur.com/api/upload.xml | sed -e "s/.*<imgur_page>//" | sed -e "s/<.*//")
echo $TEXT | xclip -selection clipboard
notify-send "Image successfully uploaded to imgur"
return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment