Created
May 29, 2014 17:01
-
-
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
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/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