Live data from Hacker News

Command-line file sharing

transfer.sh

31–40 of 80 posts

Re: Command-line file sharing

#32

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!

For linux users, install xclip from your flavor of package managers and then:

    transfer file.txt | xclip
link is copied to your clipboard.

Re: Command-line file sharing

#33
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

Add a cron job to that (to manage timed deletions), and you got a very sweet setup! :-)

Re: Command-line file sharing

#34
post #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 ;)

I installed that plugin on my boss's computer, totally forgot about it, and he was about to reach out to a bunch of executives on LinkedIn to ask them what was up with their profiles when I finally told him about it. Joke almost went a little bit too far :)

Re: Command-line file sharing

#36
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 can do this hitting Command-Shift-4 in Dropbox too.

https://www.dropbox.com/en/help/1964

Post reply on HN