From 60f3864e09a6ac5dae1705b51dac358860d7948c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 29 May 2025 14:34:46 +0200 Subject: checkpoint --- config/essentials/shell/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/essentials') 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}"; } -- cgit v1.2.3-70-g09d2