diff options
Diffstat (limited to 'config/essentials/shell/functions.sh')
| -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}"; } |
