Created
April 25, 2012 19:53
-
-
Save aL3xa/2492855 to your computer and use it in GitHub Desktop.
Imgur uploader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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