Skip to content

Instantly share code, notes, and snippets.

@rikyperdana
Last active January 10, 2017 11:54
Show Gist options
  • Save rikyperdana/e044365cc2b31c537a78467df932c2e8 to your computer and use it in GitHub Desktop.
Save rikyperdana/e044365cc2b31c537a78467df932c2e8 to your computer and use it in GitHub Desktop.
Daftar Perintah transfer.sh
INSTALL TRANSFER.SH
nano ~/.bashrc
tambahkan coding ini
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://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
source ~/.bashrc
UPLOAD KE TRANSFER.SH
transfer ./nama_file.eks
$ https://transfer.sh/kode/nama_file.eks
DOWNLOAD DARI TRANSFER.SH
wget https://transfer.sh/kode/nama_file.eks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment