$ curl -s -X POST https://www.toptal.com/developers/hastebin/documents -d "Hello World!"
{"key":"aeiou"}
$ curl https://www.toptal.com/developers/hastebin/raw/aeiou
Hello World!
haste() { a=$(cat); curl -X POST -s -d "$a" https://www.toptal.com/developers/hastebin//documents | awk -F '"' '{print "https://www.toptal.com/developers/hastebin/"$4}'; }
Usage:
cat file.txt | haste