Command-line file sharing
transfer.sh
transfer.sh
brew install gpg
gpg --gen-key
gpg -ac < file.unencrypted | curl http://transfer.sh/file.encrypted -T -
To decrypt, take the returned URL: curl https://transfer.sh/1nKXr/file.encrypted | gpg -ad
Someone can probably improve this! transfer file.txt | pbcopy
to get the link copied to your clipboard! transfer file.txt | xclip
link is copied to your clipboard. rsync -P foobar.png personal.sircmpwn.com:/var/html/
# "hey dude, go download http://personal.sircmpwn.com/foobar.png" http://z24.github.io/tty2gif/No pun detected ;)
$ cloudapp -d myfile.pdf # upload the file and copy the link in your clipboardIt will probably be around for 5 years, but is not undergoing active development, and it was a side project I worked on for funsies (I may come back to it one day, and it's kind of a leave-it-be project, especially without 100s of users).
Please refer to the other ones for a serious (or at least more well thought out) solution.
$ transfer < ./foo
acH39gew
$ transfer acH39gew > ./foo
The ref would just be short for the URL, and you could still use the URL, of course. curl -T ./filename transfer.shA 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.
...Based on some words I see on that page, I think they will anticipate abuse and roll with the punches.
https://github.com/daineseh/py-transfer.sh
ex1: Upload a file to http://transfer.sh
$./pt.py -u /home/something/file1
# and output a link for download: https://transfer.sh/19Xwp/file1
ex2: Upload multiple files to http://transfer.sh $./pt.py -u /home/something/file1 /home/something/file2 /home/something/file3
# and output some link for downloads: https://transfer.sh/19Xwp/file1
https://transfer.sh/19Xwp/file2
https://transfer.sh/19Xwp/file3
ex3: download multiple files from http://transfer.sh $./pt.py -d https://transfer.sh/19Xwp/file1 https://transfer.sh/1fn4k/file2
# Print downloads information: Download ./file1 done.
Download ./file2 done.
ex4: download multiple files and specify path from http://transfer.sh $./pt.py -d https://transfer.sh/19Xwp/file1 https://transfer.sh/1fn4k/file2 -w /home/user/
# Print downloads information: Download /home/user/file1 done.
Download /home/user/file2 done. [/] $ ls -la / | curl -F 'paste=<-' http://fh.tl/
Your paste has been saved!
Share this URL:
http://fh.tl/MO
[/] $
helpful when trying to debug someone on a remote workers machine ls -la | curl --upload-file - https://transfer.sh/bla.txt SERVER="example.com"
LOCATION="public_html/uploads"
BASE_URL="http://$SERVER/uploads"
scp "$1" "$SERVER:$LOCATION"
echo "$BASE_URL/$1" | xclip -i