HN user

sagik

4 karma

Just a wanderer https://sagi.io

Posts0
Comments3
View on HN
No posts found.

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 ).