# Upload using cURL
$ curl --upload-file ./hello.txt https://wget.co.il/hello.txt https://wget.co.il/66nb8/hello.txt
# Using the shell function
$ transfer hello.txt
##################################################### 100.0% https://wget.co.il/eibhM/hello.txt
# Uploading is easy using curl
$ curl --upload-file ./hello.txt https://wget.co.il/hello.txt
https://wget.co.il/66nb8/hello.txt
$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://wget.co.il/hello.txt
https://wget.co.il/66nb8/hello.txt
# Download the file
$ curl https://wget.co.il/66nb8/hello.txt -o hello.txt
# Add this to .bashrc or .zshrc or its equivalent
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://wget.co.il/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://wget.co.il/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://wget.co.il/$file_name"|tee /dev/null;fi;}
# Now you can use transfer function
$ transfer hello.txt
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://wget.co.il/
# Combining downloads as zip or tar archive
$ curl https://wget.co.il/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
$ curl https://wget.co.il/(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://wget.co.il/test.txt
# Download and decrypt
$ curl https://wget.co.il/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://wget.co.il/eicar.com/scan
# Upload malware to VirusTotal, get a permalink in return
$ curl -X PUT --upload-file nhgbhhj https://wget.co.il/test.txt/virustotal
# Backup, encrypt and transfer
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://wget.co.il/test.txt
# Transfer and send email with link (uses shell function)
$ 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://wget.co.il/test.txt
# Decrypt
$ curl https://wget.co.il/sqUFi/test.md |keybase decrypt
# wget
$ wget --method PUT --body-file=/tmp/file.tar https://wget.co.il/file.tar -O - -nv
# grep syslog for pound and transfer
$ cat /var/log/syslog|grep pound|curl --upload-file - https://wget.co.il/pound.log
# Upload using Powershell
PS H:\> invoke-webrequest -method put -infile .\file.txt https://wget.co.il/file.txt
# HTTPie
$ http https://wget.co.il/ -vv < /tmp/test.log
# transfersh-cli (https://github.com/tanrax/transfersh-cli)
$ trasnfersh photos.zip
# Uploading file
# Download from here: https://wget.co.il/xxxxxx/photos.zip
# It has also been copied to the clipboard!
# Your awesome sample will be put here