Skip to content

Instantly share code, notes, and snippets.

@Aricg
Created February 27, 2013 20:50
Show Gist options
  • Save Aricg/5051596 to your computer and use it in GitHub Desktop.
Save Aricg/5051596 to your computer and use it in GitHub Desktop.
#!/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