Restructuring the repo
This commit is contained in:
parent
21e3cf65e6
commit
3d67598c27
45 changed files with 368 additions and 77 deletions
8
misc/share
Executable file
8
misc/share
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/zsh
|
||||
file_id=$(head -c 12 /dev/urandom|base64| tr '/' '+')
|
||||
file_name=${2:-${1:t}}
|
||||
|
||||
ssh qwerty mkdir -p ~/share/$file_id/
|
||||
rsync -P $1 qwerty:share/$file_id/$file_name
|
||||
ssh qwerty ~/update-www-perms.sh
|
||||
echo https://share.qwertyuiop.de/$file_id/$file_name
|
Loading…
Add table
Add a link
Reference in a new issue