GoThing

Paste stuff from CLI

curl --data "STUFF" https:/es.gy/p(/ID)

Upload file from CLI

curl -T "file-to-upload" https://es.gy/up/

Fish Shell function to upload files, based on transfer.sh function

function transfer -d "Transfer files" if test (count $argv) -lt 1 echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md" else set -l tmpfile ( mktemp -t transferXXX ) command tty -s if test $status = 0 set -l basefile (basename "$argv[1]" | sed -e 's/[^a-zA-Z0-9._-]/-/g') curl --progress-bar --upload-file "$argv[1]" "https://es.gy/up/$basefile" >> $tmpfile else curl --progress-bar --upload-file "$argv[1]" "https://es.gy/up/$argv[1]" >> $tmpfile end cat $tmpfile; rm -f $tmpfile; end end