diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-05-29 21:58:29 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-05-29 21:58:29 +0200 |
| commit | c3c2050d2a6dda58f2ecaaa95da5855e7ca4a264 (patch) | |
| tree | 90e63d2a479f4f4633271f6d70bd7b26f9eb650b /config/essentials/shell | |
| parent | e2556bfb77ab5876098ee0d441317d5ef7091724 (diff) | |
| parent | 60f3864e09a6ac5dae1705b51dac358860d7948c (diff) | |
Merge branch 'main' of autumn:dotfiles
Diffstat (limited to 'config/essentials/shell')
| -rw-r--r-- | config/essentials/shell/functions.sh | 4 |
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}"; } |
