Skip to content

Comment on $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt

Comments

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 (:

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.