Live data from Hacker News

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

transfer.sh

21–30 of 125 posts

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

#21
post #6
post #2

Neat idea, and props for the https. Are the files encrypted on the server?

There's an example on how to encrypt the files before sending them to the server: # Encrypt files with password using gpg $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt # Download and decrypt $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt

Exactly, who trusts server side encryption anyway?

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

#24
post #16

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 ? 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://…

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.

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

#26
post #14

It'd be cool to have the ability to pipe stuff over the Internet from shell in real time like you would with SSH for instance. So I could do: A$ curl --upload-file - http://blah B$ curl http://blah/uYsfVX and see live stream of data on B.

You can use netcat for that. Or Bash has built-in TCP support.

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

#28
post #14

It'd be cool to have the ability to pipe stuff over the Internet from shell in real time like you would with SSH for instance. So I could do: A$ curl --upload-file - http://blah B$ curl http://blah/uYsfVX and see live stream of data on B.

You can do that with netcat if either A or B are listening.

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

#29
post #24
post #16

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 ? 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://…

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

Post reply on HN