sprunge
sprunge is ‘a command line pastebin’.
To share a file, just do
cat yourfile | curl -F 'sprunge=<-' http://sprunge.us
and sprunge will send you back a URL to share. Append a ? followed by the language your file is written in to that URL, and you’ll get line numbering and syntax highlighting, like so: http://sprunge.us/ZTXg?c.
Of course, sprunge isn’t just for files. Pipe the output of any command in the site’s direction and it’ll turn it into a nicely formatted web page—handy if you’re troubleshooting on a forum, IRC channel or over email.
See also:
Thanks, johncoltrane.