Skip to content

Instantly share code, notes, and snippets.

@thewisenerd
Forked from antdking/gist:6556473
Last active August 29, 2015 14:02
Show Gist options
  • Save thewisenerd/b634dfb40e54356eeb64 to your computer and use it in GitHub Desktop.
Save thewisenerd/b634dfb40e54356eeb64 to your computer and use it in GitHub Desktop.
txt=$(cat $1 | tail -1000)
key=$(curl -d post_data="$txt" "http://hastebin.com/documents" | sed 's/{\|}\|\"\|:\|\(key\)//g')
raw_url="http://hastebin.com/raw/${key}"
txt_url="http://hastebin.com/${key}.txt"
echo $txt_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment