aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare9
1 files changed, 7 insertions, 2 deletions
diff --git a/share b/share
index 51126e7..ccd717b 100755
--- a/share
+++ b/share
@@ -2,7 +2,12 @@
2 2
3# One-liner to upload stuff to my webserver 3# One-liner to upload stuff to my webserver
4 4
5url=tronto.net:/var/www/htdocs/share.tronto.net 5srv=tronto.net
6dir=$(cat /dev/random | tr -cd 'a-z0-9' | fold -w 8 | head -n 1)
7htp=https://share.tronto.net/$dir
8pth=/var/www/htdocs/share.tronto.net/$dir
9url=$srv:$pth
6 10
11ssh tronto.net mkdir $pth
7scp $@ $url/ 12scp $@ $url/
8for i in $@; do echo "https://share.tronto.net/$i"; done 13for i in $@; do echo "$htp/$i"; done

Generated with cgit - Back to sebastiano.tronto.net