by sagik · 10y ago · 0 comments
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 ).
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 (: