This commit is contained in:
Patrick Alvin Alcala 2026-02-16 11:55:28 +08:00
parent 883e0baf14
commit 5f84031243
3 changed files with 12 additions and 8 deletions

16
.zshrc
View file

@ -172,23 +172,23 @@ alias sshpi="ssh patrick@65.108.82.60 -p 919"
alias sshi="ssh iipsadmin@192.168.7.163"
ytf() {
yt-dlp --list-formats $1 --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
yt-dlp --list-formats 'https://youtube.com/'$1 --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
}
ytd() {
yt-dlp -f 'bv*[height=1080]+ba' $1 -o '~/Downloads/Youtube/%(title)s.%(ext)s' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
yt-dlp -f 'bv*[height=1080]+ba' 'https://youtube.com/'$1 -o '~/Downloads/Youtube/%(title)s.%(ext)s' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
}
ytdh() {
yt-dlp -f 'bv*[height<='$1']+ba' $2 -o '~/Downloads/Youtube/%(title)s.%(ext)s' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
yt-dlp -f 'bv*[height<='$1']+ba' 'https://youtube.com/'$2 -o '~/Downloads/Youtube/%(title)s.%(ext)s' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
}
ytd4() {
yt-dlp -f 'bv[height=1080][ext=mp4]+ba[ext=m4a]' --merge-output-format $1 -o '~/Downloads/Youtube/%(title)s.mp4' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
yt-dlp -f 'bv[height=1080][ext=mp4]+ba[ext=m4a]' --merge-output-format 'https://youtube.com/'$1 -o '~/Downloads/Youtube/%(title)s.mp4' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
}
ytd4h() {
yt-dlp -f 'bv[height='$1'][ext=mp4]+ba[ext=m4a]' --merge-output-format $2 -o '~/Downloads/Youtube/%(title)s.mp4' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
yt-dlp -f 'bv[height='$1'][ext=mp4]+ba[ext=m4a]' --merge-output-format 'https://youtube.com/'$2 -o '~/Downloads/Youtube/%(title)s.mp4' --cookies-from-browser firefox --cookies /home/patrick/Documents/cookies.txt --js-runtimes node
}
ytda() {
@ -246,7 +246,11 @@ fwtbbg() {
}
dasig() {
git clone --depth 1 https://git.patalcala.com/patalcala9/dasig-solid /home/patrick/Documents/WebApps/$1 && cd /home/patrick/Documents/WebApps/$1 && rm -rf .git README.md && git init && git branch -m master main && touch README.md && echo '#' $1 > README.md && cd frontend && make && make dev
git clone --depth 1 https://git.patalcala.com/patalcala9/dasig /home/patrick/Documents/WebApps/$1 && cd /home/patrick/Documents/WebApps/$1 && rm -rf .git README.md && git init && git branch -m master main && touch README.md && echo '#' $1 > README.md && cd frontend && pnpm install && cd ../backend && go mod tidy && cd ../frontend && pnpm dev
}
dasig-astro() {
git clone --depth 1 https://git.patalcala.com/patalcala9/dasig-astro /home/patrick/Documents/WebApps/$1 && cd /home/patrick/Documents/WebApps/$1 && rm -rf .git README.md && git init && git branch -m master main && touch README.md && echo '#' $1 > README.md && make && make dev
}