aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-10-19 17:23:28 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-10-19 17:23:28 +0200
commite9f2bfa22f43594235b8b963dc19cc19c9a23a73 (patch)
treeff9c5f76ad4d73cbe12b68f19fe5ead21a9e5897
parente8aa1006b90a305390ff39bc48d0d94ad9c9ad1f (diff)
downloadscripts-e9f2bfa22f43594235b8b963dc19cc19c9a23a73.tar.gz
scripts-e9f2bfa22f43594235b8b963dc19cc19c9a23a73.zip
Added random path to share url; made theme executable
-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