Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use sprunge [http://sprunge.us/] for the exact same purpose.

Normal usage: $ more c14.py | sprunge

And it outputs: http://sprunge.us/eCeM

The nice thing about sprunge is that you also have syntax highlighting: http://sprunge.us/eCeM?py

Appending a ?<lang> will syntax highlight the text according to the lang.

P.S.

To use a pipe with sprunge, put an alias in your .zshrc / .bashrc:

alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"

and then use source ./zshrc ( or .bashrc ).



I think the newness about this is that they've released the code on github under MIT, so you can self-host the service if you want. I think none of the othe rprojects mentioned here have are opensource or have a slef-hosted version.


I wrote a sprunge clone with a gimmick (the URL contains the sha256 digest of the paste) to learn Go. Ships with a Dockerfile. Probably doesn't scale. Affero GPL.

https://github.com/tomjakubowski/yasuc


sprunge (apparently) is released under WTFPL, and the sources are here https://github.com/rupa/sprunge.

According to http://www.wtfpl.net/about/, the first rule (and the only rule) of WTFPL is:

0. You just DO WHAT THE FUCK YOU WANT TO.

So, I guess you can self host it (:




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: