for finding encoder info use:
$ ffprobe -i original.mp4
for next commands, encoder settings MUST BE the same as the original video to don't lose significant quality and color during re-encoding
shake detection and stabilization:
#!/bin/bash | |
die(){ | |
echo "$1" | |
exit 1 | |
} | |
# Function to verify SHA256 hash of a downloaded file. | |
verify_hash(){ | |
local expected="$1" |
#!/bin/bash | |
if [ "$1" == "insert" ]; then | |
for cfip in `curl -sw '\n' https://www.cloudflare.com/ips-v{4,6}`; | |
do | |
ufw allow proto tcp from $cfip to any port 80,443 comment 'Cloudflare'; | |
done | |
echo $0 'Inserted' | |
elif [ "$1" == "delete" ]; then | |
while ufw status numbered | grep -q 'Cloudflare'; |
#!/bin/bash | |
# Convert a MDB file (Access) to SQL | |
# Needs mdbtools[http://mdbtools.sourceforge.net/] | |
# run 'aptitude install mdbtools' on Debian/Ubuntu | |
# Created by Álvaro Justen <https://github.com/turicas> | |
# License: GPLv2 | |
mdb=$1 | |
sql=$2 |