Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

33 rindas
926 B

  1. transfer.sh: Easy file sharing from the command line
  2. ===
  3. made with <3 by DutchCoders
  4. Upload:
  5. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  6. Encrypt & upload:
  7. $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
  8. Download & decrypt:
  9. $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
  10. Upload to virustotal:
  11. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
  12. Virusscan:
  13. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/scan
  14. Add alias to .bashrc or .zshrc:
  15. ===
  16. transfer() {
  17. # write to output to tmpfile because of progress bar
  18. tmpfile=$( mktemp -t transferXXX );
  19. basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g');
  20. curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile;
  21. cat $tmpfile; rm -f $tmpfile;
  22. }
  23. alias transfer=transfer
  24. ===
  25. $ transfer test.txt