Uvis Grinfelds 22dba22b1b | 9 yıl önce | |
---|---|---|
extras | 9 yıl önce | |
transfersh-server | 9 yıl önce | |
transfersh-web | 9 yıl önce | |
.gitignore | 9 yıl önce | |
.jshintrc | 9 yıl önce | |
.travis.yml | 9 yıl önce | |
Gruntfile.js | 9 yıl önce | |
LICENSE | 9 yıl önce | |
README.md | 9 yıl önce | |
Vagrantfile | 9 yıl önce | |
bower.json | 9 yıl önce | |
package.json | 9 yıl önce |
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
Upload:
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
Encrypt & upload:
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
Download & decrypt:
$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
Upload to virustotal:
$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
Add alias to .bashrc or .zshrc:
===
transfer() {
# write to output to tmpfile because of progress bar
tmpfile=$( mktemp -t transfer )
curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
cat $tmpfile;
rm -f $tmpfile;
}
alias transfer=transfer
===
$ transfer test.txt
grunt serve
grunt build
sh transfer-server/run.sh
Contributions are welcome.
Remco Verhoef
Uvis Grinfelds
Code and documentation copyright 2011-2014 Remco Verhoef. Code released under the MIT license.