Live data from Hacker News

Command-line file sharing

transfer.sh

21–30 of 80 posts

Re: Command-line file sharing

#21
post #9

I use CloudApp for OS X for sharing files and it's pretty convenient. The best part is sharing screenshots with it. You take a screenshot, it is automatically uploaded to the cloud (no pun intended) and the link is copied to your Clipboard. You could not ask for anything simpler.

> You take a screenshot, it is automatically uploaded to my butt (no pun intended) and the link is copied to your Clipboard.

No pun detected ;)

Re: Command-line file sharing

#22
post #7

I really like http://fh.tl/ because you can also easily send shell output [/] $ ls -la / | curl -F 'paste= helpful when trying to debug someone on a remote workers machine

This works also with transfer, eg.

  ls -la | curl --upload-file - https://transfer.sh/bla.txt

Re: Command-line file sharing

#24
post #8

I would love to use this for my own files, without expiration etc. Do you have any plans to open source this?

Maybe I don't understand what this service actually does. When you take away the file expiration and the convenience of not having to manage your own infrastructure what is left? I've had this script in ~/bin for years.

  SERVER="example.com"
  LOCATION="public_html/uploads"
  BASE_URL="http://$SERVER/uploads"
  
  scp "$1" "$SERVER:$LOCATION"
  echo "$BASE_URL/$1" | xclip -i

Re: Command-line file sharing

#26
post #16

I've been wanting something like this for semi-private image shares as Imgur's URLs aren't very random; but Transfer has a similar security problem; it looks like the URLs need to be longer as a prerequisite to being un-crawlable. I hope you'll consider it.

Op here. The urls are randomly generated combined with the chosen filename, I assume this should be safe enough. Links will expire in 2 weeks. Working on functionality where you can configure the lifetime. Eg, just 1 download or 2 days.

OP, I'm not an expert but I think you need to introduce more entropy to prevent opportunistic crawling of every possible URL.

Re: Command-line file sharing

#29

That's great, you can encrypt stuff then as follows (on a Mac). brew install gpg gpg --gen-key gpg -ac To decrypt, take the returned URL: curl https://transfer.sh/1nKXr/file.encrypted | gpg -ad Someone can probably improve this!

Handy tip for OS X users: after creating the "transfer" alias, simply use

  transfer file.txt | pbcopy 
to get the link copied to your clipboard!
Post reply on HN