Live data from Hacker News

Command-line file sharing

transfer.sh

51–60 of 80 posts

Re: Command-line file sharing

#51
post #50

This will be abused for hosting questionable things in no time, if it's not already.

Yeah, nice target for drive-by malware uploaders.

A better approach than blanket allowing of hotlinking is to whitelist certain user agents (curl, wget) and only allow those to directly download the file, and to present landing pages detailing the file and its contents to everyone else. It's been on my list of things to implement in my own sharing site.

Re: Command-line file sharing

#53
at least for common use cases like curl and wget you probably need a wrapper. I mean i love the idea of never leaving my cli, but... as developer and bash user im lazy... so please don't make type long curl commands. (Yeah I know I can add some aliases, but a wrapper could be handy). Anyway good job :)

Re: Command-line file sharing

#54

I wish the URL could include a hash of the content so it could be used for verification for uploading and downloading the files. It could be handy for error checking and security checks.

Better yet, if there was a wrapper for this, it could just operate on abbreviated hash-prefix (i.e. git ref) rather than URL.

    $ transfer  ./foo
The ref would just be short for the URL, and you could still use the URL, of course.

Re: Command-line file sharing

#58

My usual procedure goes something like this: rsync -P foobar.png personal.sircmpwn.com:/var/html/ # "hey dude, go download http://personal.sircmpwn.com/foobar.png"

I do this too, but I find it annoying not knowing if the file has been received and when it's safe for me to delete it.

Re: Command-line file sharing

#59

My usual procedure goes something like this: rsync -P foobar.png personal.sircmpwn.com:/var/html/ # "hey dude, go download http://personal.sircmpwn.com/foobar.png"

I do this too, but I find it annoying not knowing if the file has been received and when it's safe for me to delete it.

"Did you get that file I sent you?" "Yes" "Great, thanks" $ ssh personal.sircmpwn.com rm /var/html/foobar.png
Post reply on HN