Partage de fichier ici ou en ligne de commande

# 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.

# Téléchargez tous vos fichiers

zip tar.gz

Conçu pour le shell

Partagez vos fichier avec une URL

Jusqu'a 2GB

Conservé 14 days

Gratuit

Chiffré

Visualisez vos fichiers dans le navigateur !

Cas d'usage

Comment téléverser

# 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

En ajoutant une fonction shell à votre .bashrc ou .zshrc

# 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
D'avantage de cas

Téléverser plusieurs fichiers en une fois

$ 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 vos fichiers avant le téléversement

# 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

Analyser de malware (non supporté sur cette instance)

# 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 une base mysql, chiffrer et téléverser

# 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)

# 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

Utiliser Keybase.io

# 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 est aussi supporté

# wget $ wget --method PUT --body-file=/tmp/file.tar https://f.qth.fr/file.tar -O - -nv

Téléverser des logs

# 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

# En utilisant Powershell PS H:\> invoke-webrequest -method put -infile .\file.txt https://f.qth.fr/file.txt

En utilisant HTTPie

# HTTPie $ http https://f.qth.fr/ -vv < /tmp/test.log

En utilisant un client non-officiel Python

# 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 !
Fork me on GitHub