1
0
Fork 0

add ssh convert & zstd

This commit is contained in:
VirtuBox 2020-09-09 14:27:33 +02:00
parent a8a1582430
commit 9b60b94092
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 12 additions and 0 deletions

View File

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