aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare9
-rwxr-xr-x[-rw-r--r--]theme0
2 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
diff --git a/theme b/theme
index 7e0107a..7e0107a 100644..100755
--- a/theme
+++ b/theme

Generated with cgit - Back to sebastiano.tronto.net