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.

преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. Transfer.sh support currently the s3 (Amazon S3) provider and local file system (local).
  4. [![Build Status](https://travis-ci.org/dutchcoders/transfer.sh.svg?branch=master)](https://travis-ci.org/dutchcoders/transfer.sh)
  5. ## Usage
  6. ```
  7. Upload:
  8. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  9. Encrypt & upload:
  10. $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
  11. Download & decrypt:
  12. $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
  13. Upload to virustotal:
  14. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
  15. Add alias to .bashrc or .zshrc:
  16. ===
  17. transfer() {
  18. # write to output to tmpfile because of progress bar
  19. tmpfile=$( mktemp -t transferXXX )
  20. curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
  21. cat $tmpfile;
  22. rm -f $tmpfile;
  23. }
  24. alias transfer=transfer
  25. ===
  26. $ transfer test.txt
  27. ```
  28. ## Development
  29. ```
  30. npm install
  31. bower install
  32. go get github.com/PuerkitoBio/ghost/handlers
  33. go get github.com/gorilla/mux
  34. go get github.com/dutchcoders/go-clamd
  35. go get github.com/goamz/goamz/s3
  36. go get github.com/goamz/goamz/aws
  37. go get github.com/golang/gddo/httputil/header
  38. go get github.com/kennygrant/sanitize
  39. grunt serve
  40. grunt build
  41. go run transfersh-server/*.go -provider=local --port 8080 --temp=/tmp/ --basedir=/tmp/
  42. ```
  43. ## Build
  44. ```
  45. go build -o transfersh-server *.go
  46. ```
  47. ## Docker
  48. For easy deployment we've enabled Docker deployment.
  49. ```
  50. docker build -t transfersh .
  51. docker run --publish 8080:8080 --rm transfersh --provider local --basedir /tmp/
  52. ```
  53. ## Contributions
  54. Contributions are welcome.
  55. ## Creators
  56. **Remco Verhoef**
  57. - <https://twitter.com/remco_verhoef>
  58. - <https://twitter.com/dutchcoders>
  59. **Uvis Grinfelds**
  60. ## Copyright and license
  61. Code and documentation copyright 2011-2014 Remco Verhoef.
  62. Code released under [the MIT license](LICENSE).