Skip to content

Instantly share code, notes, and snippets.

@usrbinkat
Created December 2, 2019 16:56
Show Gist options
  • Save usrbinkat/fc037a26ddf86a770764c4ba425a5614 to your computer and use it in GitHub Desktop.
Save usrbinkat/fc037a26ddf86a770764c4ba425a5614 to your computer and use it in GitHub Desktop.
Hastebin Curl Bash Wrapper
#!/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://$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