|
|
@ -48,6 +48,10 @@ compress_pigz() { |
|
|
|
tar -I pigz -cvf "$1.tar.gz" "$1" |
|
|
|
} |
|
|
|
|
|
|
|
compress_zstd() { |
|
|
|
tar -I zstd -cvf "$1.tar.zst" "$1" |
|
|
|
} |
|
|
|
|
|
|
|
decompress_pigz() { |
|
|
|
tar -I pigz -xvf "$1" |
|
|
|
} |
|
|
@ -669,6 +673,7 @@ _URBACKUP_CLIENT() { |
|
|
|
ufw allow from 144.76.159.118 to any port 35621 |
|
|
|
ufw allow from 144.76.159.118 to any port 35622 |
|
|
|
ufw allow from 144.76.159.118 to any port 35623 |
|
|
|
ufw reload |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
@ -684,6 +689,10 @@ _DELETE_WO_SITES() { |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
################################## |
|
|
|
# ffmpeg |
|
|
|
################################## |
|
|
|
|
|
|
|
ffmpeg_start_time() { |
|
|
|
|
|
|
|
if [ "$#" = "0" ]; then |
|
|
@ -742,6 +751,7 @@ _MERGE_VIDEO() { |
|
|
|
done |
|
|
|
fi |
|
|
|
ffmpeg -f concat -safe 0 -i mylist.txt -c copy "output-merged.mp4" |
|
|
|
rm -f mylist.txt |
|
|
|
} |
|
|
|
|
|
|
|
_TRANSFER_AUDIO() { |
|
|
@ -866,3 +876,5 @@ alias mp4convert=_MP4_CONVERT |
|
|
|
alias suroot='sudo su - root' |
|
|
|
alias apt-playbook='ansible-playbook /etc/ansible/playbooks/include/update-apt-servers.yml' |
|
|
|
alias full-upgrade-playbook='ansible-playbook /etc/ansible/playbooks/update-all-servers.yml' |
|
|
|
alias ssh-key-convert='ssh-keygen -i -f' |
|
|
|
alias gzstd=compress_zstd |