Created
October 29, 2009 20:44
-
-
Save Voker57/221804 to your computer and use it in GitHub Desktop.
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 | |
usage() | |
{ | |
echo "Usage: dump <file|image|text> [file] [language]" | |
} | |
case $1 in | |
file) | |
URL=`curl -w %{redirect_url} -F "file=@$2" http://dump.bitcheese.net/upload-file?simple` | |
echo "$URL [$URL/preview]" ;; | |
image) | |
URL=`curl -w %{redirect_url} -F "file=@$2" http://dump.bitcheese.net/upload-image?simple` | |
echo "$URL [$URL/preview]" ;; | |
text) | |
if [ -z $3 ] ; then | |
LANG=Plaintext | |
else | |
LANG=$3 | |
fi | |
URL=`curl -w %{redirect_url} -F "lang=$LANG" -F "text=@$2" http://dump.bitcheese.net/upload-text` | |
echo $URL ;; | |
*) usage; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/l29ah/w3crapcli/blob/master/dump.bitcheese.net/dump the best one