Created
February 27, 2013 20:50
-
-
Save Aricg/5051596 to your computer and use it in GitHub Desktop.
Hastebin client (curl) https://github.com/seejohnrun/haste-server
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/bash | |
#(optional) in the format user.name:password@ (you need the @ after) | |
password="$(< ~/.hidden_password)" | |
url="hastebin.com" | |
key="$(curl --silent --insecure --data-binary @/dev/fd/0 https://"$password""$url"/documents | cut -d "\"" -f 4)" | |
echo "https://"$url"/"$key"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment