# Upload using cURL
$ curl --upload-file hello.txt https://aptget.xyz https://aptget.xyz/66nb8/hello.txt
# Using the alias
$ aptget hello.txt
##################################################### 100.0% https://aptget.xyz/eibhM/hello.txt
# Upload from web
Drag your files here, or click to browse.
# Uploading is easy using curl
$ curl --upload-file hello.txt https://aptget.xyz
https://aptget.xyz/66nb8/hello.txt
# Download the file
$ wget https://aptget.xyz/66nb8/hello.txt
# Add this to .bashrc or its equivalent
aptget() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\naptget hello.txt"; return 1; fi; tmpfile=$( mktemp -t aptgetXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://aptget.xyz/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://aptget.xyz/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
# Now you can use the aptget command
$ aptget hello.txt