You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # transfer.sh
  2. Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
  3. [![Build Status](https://travis-ci.org/dutchcoders/transfer.sh.svg?branch=master)](https://travis-ci.org/dutchcoders/transfer.sh)
  4. ## Usage
  5. ```
  6. Upload:
  7. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  8. Encrypt & upload:
  9. $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
  10. Download & decrypt:
  11. $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
  12. Upload to virustotal:
  13. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
  14. Add alias to .bashrc or .zshrc:
  15. ===
  16. transfer() {
  17. # write to output to tmpfile because of progress bar
  18. tmpfile=$( mktemp -t transfer )
  19. curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
  20. cat $tmpfile;
  21. rm -f $tmpfile;
  22. }
  23. alias transfer=transfer
  24. ===
  25. $ transfer test.txt
  26. ```
  27. ## Development
  28. - grunt serve
  29. - grunt build
  30. - sh transfer-server/run.sh
  31. ## Contributions
  32. Contributions are welcome.
  33. ## Creators
  34. **Remco Verhoef**
  35. - <https://twitter.com/remco_verhoef>
  36. - <https://twitter.com/dutchcoders>
  37. **Uvis Grinfelds**
  38. ## Copyright and license
  39. Code and documentation copyright 2011-2014 Remco Verhoef. Code released under [the MIT license](LICENSE).