cd /
;
apropos
;
Script pour uploader vers divers services d'hébergement. Ce site est choisi au hasard dans le dossier ''ud=~/bin/up-tools/''.
#!/bin/sh # wrapper to upload a file using one of tools in upload ud=~/bin/up-tools/ # list of upload scripts # select random uploader uploader="$(find ${ud} -type f | sort -R | head -n1)" f="$*" test -f "${f}" || continue uploader="$(find ${ud} -type f | sort -R | head -n1)" $uploader "${f}" while [ $? -ne 0 ]; do # pick random uploader uploader="$(find ${ud} -type f | sort -R | head -n1)" $uploader "${f}" done
#!/bin/sh #upload to 0x0.st curl -f -F"file=@${1}" "https://0x0.st" exit $?
#!/bin/sh curl -f -T "${1}" https://temp.sh exit $?
#!/bin/sh # upload to transfer.sh curl -f --progress-bar --upload-file "${1}" https://transfer.sh/ exit $?
#!/bin/sh #upload to ttm.sh curl -f -F"file=@${1}" "https://ttm.sh" exit $?