airikr / Useful bash scripts
0 likes
0 forks
1 files
Last active
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 | } |
Newer
Older