4 ms·
I use sprunge [http://sprunge.us/ http://sprunge.us/] for the exact same purpose. Normal usage: $ more c14.py | sprunge And it outputs: http://sprunge.us/eCeM
by sagik 11y ago
I use sprunge [http://sprunge.us/ http://sprunge.us/] for the exact same purpose.
Normal usage:
$ more c14.py | sprunge
And it outputs:
http://sprunge.us/eCeM http://sprunge.us/eCeM
The nice thing about sprunge is that you also have syntax highlighting: http://sprunge.us/eCeM?py 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" http://sprunge.us"
and then use source ./zshrc ( or .bashrc ).
- mtrycz 11y agoI 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.
- tomjakubowski 11y agoI 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 https://github.com/tomjakubowski/yasuc
- sagik 11y agosprunge (apparently) is released under WTFPL, and the sources are here https://github.com/rupa/sprunge https://github.com/rupa/sprunge. According to http://www.wtfpl.net/about/ 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 (: