summaryrefslogtreecommitdiff
path: root/config/essentials/shell
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-05-29 14:34:46 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-05-29 14:34:46 +0200
commit60f3864e09a6ac5dae1705b51dac358860d7948c (patch)
tree6dda5581cf2939f30f68c54f89ef5e04ddead412 /config/essentials/shell
parent64557b43698bedc363d1f430478d1447795935df (diff)
checkpoint
Diffstat (limited to 'config/essentials/shell')
-rw-r--r--config/essentials/shell/functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index 7c8c777..20e96bd 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -72,6 +72,10 @@ esc() { eval "$EDITOR '$(which $1)'"; }
ssh_keyadd() { ssh-keygen -f "$HOME"/.ssh/"$1" -P "$(pass generate -f keys/"$HOST"/ssh/"$1" | tail -n 1)" -t ed25519; }
delfile() { curl -s "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; }
upfile() { curl -s -F "file=@\"$1\"" "${2:-https://0x0.st}"; }
+upfile-dufs() { curl -T "$1" http://192.168.178.79:5000/"$1"; }
+delfile-dufs() { curl -X DELETE http://192.168.178.79:5000/"$1"; }
+getfile-dufs() { curl http://192.168.178.79:5000/"$1"; }
+lsfile-dufs() { curl http://192.168.178.79:5000?simple; }
to_webm() { ffmpeg -y -i "$1" -vcodec libvpx -cpu-used -12 -deadline realtime "${1%.*}".webm; }
ngenable() { ln -sf /etc/nginx/sites-available/$1 /etc/nginx/sites-enabled/; }
remove_audio() { ffmpeg -i "$1" -cpu-used -$(nproc) -deadline realtime -c copy -an "${2:-out.mp4}"; }