Created
January 2, 2015 16:18
-
-
Save saucecode/1d6ed69f45cc448ab906 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sleep 0.2; | |
scrot -q 90 -s /home/saucecode/tmp/shot.jpg | |
SHOT=/home/saucecode/tmp/shot.jpg | |
OUTPUT=$(curl --silent -sf -F "files[]=@$SHOT" "http://pomf.se/upload.php" | grep -Eo '"url":"[A-Za-z0-9]+.*",' | sed 's/"url":"//;s/",//') | |
echo http://a.pomf.se/$OUTPUT | xclip -selection "clipboard" | |
mplayer /home/saucecode/tmp/confirm.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bind to a hotkey in Keyboard settings (*ubuntu).
http://a.pomf.se/cepote.jpg