# Avec cURL
$ curl --upload-file ./hello.txt https://f.qth.fr/hello.txt https://f.qth.fr/66nb8/hello.txt
# Avec la fonction transfer bash
$ transfer hello.txt
##################################################### 100.0% https://f.qth.fr/eibhM/hello.txt
# Avec votre navigateur
Glissez vos fichiers ici, ou cliquez ici.
# En utilisant curl
$ curl --upload-file ./hello.txt https://f.qth.fr/hello.txt
https://f.qth.fr/66nb8/hello.txt
$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://f.qth.fr/hello.txt
https://f.qth.fr/66nb8/hello.txt
# Télécharger le fichier
$ curl https://f.qth.fr/66nb8/hello.txt -o hello.txt
# Ajoutez ceci à votre .bashrc ou .zshrc ou équivalent
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://f.qth.fr/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://f.qth.fr/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://f.qth.fr/$file_name"|tee /dev/null;fi;}
# Maintenant, vous pouvez utiliser la fonction
$ transfer hello.txt
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://f.qth.fr/
# Combinez des téléchargement en archive zip ou tar
$ curl https://f.qth.fr/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
$ curl https://f.qth.fr/(15HKz/hello.txt,15HKz/hello.txt).zip
# Chiffrer les fichiers avec un mot de passe en utilisant gpg
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://f.qth.fr/test.txt
# Télécharger et déchiffrer
$ curl https://f.qth.fr/1lDau/test.txt|gpg -o- > /tmp/hello.txt
# Scan for malware or viruses using Clamav
$ wget http://www.eicar.org/download/eicar.com
$ curl -X PUT --upload-file ./eicar.com https://f.qth.fr/eicar.com/scan
# Upload malware to VirusTotal, get a permalink in return
$ curl -X PUT --upload-file nhgbhhj https://f.qth.fr/test.txt/virustotal
# Sauvegarder, chiffrer et téléverser
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://f.qth.fr/test.txt
# Envoyer un email avec le lien du fichier téléversé (utilise la fonction shell)
$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
# Importer les clés depuis keybase
$ keybase track [them]
# Chiffrer pour les destinataires et téléverser
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' https://f.qth.fr/test.txt
# Télécharger et déchiffrer
$ curl https://f.qth.fr/sqUFi/test.md |keybase decrypt
# wget
$ wget --method PUT --body-file=/tmp/file.tar https://f.qth.fr/file.tar -O - -nv
# Filtrer un log et le téléverser
$ cat /var/log/syslog|grep pound|curl --upload-file - https://f.qth.fr/pound.log
# En utilisant Powershell
PS H:\> invoke-webrequest -method put -infile .\file.txt https://f.qth.fr/file.txt
# HTTPie
$ http https://f.qth.fr/ -vv < /tmp/test.log
# transfersh-cli (https://github.com/tanrax/transfersh-cli)
$ trasnfersh photos.zip
# Téléverser le fichier
# Télécharger: https://f.qth.fr/xxxxxx/photos.zip
# Le lien est aussi copié dans votre presse-papier !