diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-16 10:09:29 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-16 10:09:29 +0200 |
commit | 692bc52c20da866630fa401be6740bc38f8f8574 (patch) | |
tree | be52e621dbbb15bfd2f43ec92053e4b0a817c392 /config/essentials/shell/functions.sh | |
parent | 197a1a74f468d9d69d624b19f90280a3946455e5 (diff) | |
parent | 19ea61db733c9152f2b334b0ae9871f81ac3664d (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r-- | config/essentials/shell/functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index fa32446..f8b764a 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -72,8 +72,8 @@ getgit() { git clone git@db:"$1"; } esc() { eval "$EDITOR '$(which $1)'"; } compdef esc="which" -delfile() { curl "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; } -upfile() { curl -F "file=@\"$1\"" "${2:-https://0x0.st}"; } +delfile() { curl -s "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; } +upfile() { curl -s -F "file=@\"$1\"" "${2:-https://0x0.st}"; } 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}"; } |