Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

30 lignes
844 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. Add alias to .bashrc or .zshrc:
  13. ===
  14. transfer() {
  15. # write to output to tmpfile because of progress bar
  16. tmpfile=$( mktemp -t transferXXX );
  17. basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g');
  18. curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile;
  19. cat $tmpfile; rm -f $tmpfile;
  20. }
  21. alias transfer=transfer
  22. ===
  23. $ transfer test.txt