airikr / Useful bash scripts
0 喜歡
0 分支
1 檔案
最後活躍 8 months ago
These are my number one bash scripts. I can't live without them.
| 1 | alias install_no="sudo pacman -Sy" |
| 2 | alias install_ya="yay -S --noconfirm" |
| 3 | alias backupvps="rsync -avhzr --delete --progress --rsh='ssh -p22' user@ip:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile","/boot/*"} /to/dir/" |
| 4 | |
| 5 | |
| 6 | # Compress a video with CUDA acceleration (GPU from NVIDIA is required) |
| 7 | function reducevideo { |
| 8 | ffmpeg -hwaccel cuda -i "$1" -c:v libx265 -vtag hvc1 -c:a copy "$2" |
| 9 | } |
上一頁
下一頁