# Upload using cURL
$ curl --upload-file ./hello.txt https://f.secretalgorithm.com/hello.txt https://f.secretalgorithm.com/66nb8/hello.txt
# Using the alias
$ transfer hello.txt
##################################################### 100.0% https://f.secretalgorithm.com/eibhM/hello.txt
# Uploading is easy using curl
$ curl --upload-file ./hello.txt https://f.secretalgorithm.com/hello.txt
https://f.secretalgorithm.com/66nb8/hello.txt
# Download the file
$ curl https://f.secretalgorithm.com/66nb8/hello.txt -o hello.txt
# Add this to .bashrc or its equivalent
transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://f.secretalgorithm.com/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://f.secretalgorithm.com/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
# Or for fish
function transfer; if test "$argv" = 0; echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; end; set tmpfile ( mktemp -t transferXXX ); if tty -s; set basefile (basename "$argv" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$argv" "https://f.secretalgorithm.com/$basefile" >> $tmpfile; else; curl --progress-bar --upload-file "-" "https://f.secretalgorithm.com/$argv" >> $tmpfile; end; cat $tmpfile; rm -f $tmpfile; end
# Now you can use transfer command
$ transfer hello.txt
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://f.secretalgorithm.com/
# Combining downloads as zip or tar archive
$ curl https://f.secretalgorithm.com/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
$ curl https://f.secretalgorithm.com/(15HKz/hello.txt,15HKz/hello.txt).zip
# Encrypt files with password using gpg
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://f.secretalgorithm.com/test.txt
# Download and decrypt
$ curl https://f.secretalgorithm.com/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.secretalgorithm.com/eicar.com/scan
# Upload malware to VirusTotal, get a permalink in return
$ curl -X PUT --upload-file nhgbhhj https://f.secretalgorithm.com/test.txt/virustotal
# Backup, encrypt and transfer
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://f.secretalgorithm.com/test.txt
# Transfer and send email with link (uses alias)
$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
# Import keys from keybase
$ keybase track [them]
# Encrypt for recipient(s)
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' https://f.secretalgorithm.com/test.txt
# Decrypt
$ curl https://f.secretalgorithm.com/sqUFi/test.md |keybase decrypt
# wget
$ wget --method PUT --body-file=/tmp/file.tar https://f.secretalgorithm.com/file.tar -O - -nv
# grep syslog for pound and transfer
$ cat /var/log/syslog|grep pound|curl --upload-file - https://f.secretalgorithm.com/pound.log
# Your awesome sample will be put here