Skip to content

Instantly share code, notes, and snippets.

@edrpls
Created May 29, 2014 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edrpls/405ebdbedc9df9e69a4e to your computer and use it in GitHub Desktop.
Save edrpls/405ebdbedc9df9e69a4e to your computer and use it in GitHub Desktop.
Uploads any text file to hastebin.com and copies its URL to the clipboard
#!/bin/sh
# The host must have already installed haste and pbcopy
# The expected param is a path to any given file
cat $1 | haste | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment