# imgur script by Bart Nagel <bart@tremby.net> # version 2 # I release this as public domain. Do with it what you will. # Required: curl # # Optional: xsel or xclip for automatically putting the URL on the X selection # for easy pasting # # Instructions: # Put it somewhere in your path and maybe rename it: # mv ~/Downloads/imgur.sh ~/bin/imgur # Make it executable: # chmod +x ~/bin/imgur # Stick your API key in the top: # vim ~/bin/imgur # Upload an image: # imgur images/hilarious/manfallingover.jpg # The URL will be displayed (and the delete page's URL will be displayed on # stderr). If you have xsel or xclip the URL will also be put on the X # selection, which you can usually paste with a middle click. Reproducible: Always
Created attachment 304829 [details] this Bash script
Interesting script (I use imgur a lot and such a script would really be helpful). Yet, I'd first like to know where this line in the script is *really* coming from: 25 # API Key provided by Alan@imgur.com 26 apikey="b3625162d3418ac51a9ee805b1840452" Not sure Alan would like us to use his private API key in a script freely available on the Internet. For this reason, this cannot hit the tree I'm afraid. Please reopen and provide us with explanations.