diff --git a/transfersh-web/index.html b/transfersh-web/index.html index fbdfaa1..e2f7fe4 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -62,7 +62,8 @@
+ ls this
$ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } alias transfer=transfer
+
+
+ # transfer.sh alias
+ # write output to tmpfile because of progress bar
+ $ transfer()
+ {
+ tmpfile=$( mktemp -t transfer )
+ curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
+ alias transfer=transfer
+
+
+
$transfer hello.txt
-
-
- $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
-
- $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
- $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
-
-
- $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
- $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
- $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
+
+ $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
+ $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
+
+
+ $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
+ $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
+