Skip to content

Instantly share code, notes, and snippets.

@aL3xa
Created April 25, 2012 19:53
Show Gist options
  • 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