Bash Snippets
Youtube-dl into Ffmpeg
Benötigt youtube-dl, parallel und ffmpeg.
Holt sich die direkte Video-URL via youtube-dl und piped die Video und Sound-Url direkt in ffmpeg.
Ermöglicht alles was ffmpeg kann, z.B. herauschneiden eines Clips:
youtube-dl -g [url] | parallel -N 2 ffmpeg -ss [start] -i {1} -i {2} -map 0:v -map 1:a -t [time] -c copy out.webm
Filtered Chmod
find . [filters here] -exec chmod [MOD] -- {} +
#z.B. chmod nur Dateien
find . -type f -exec chmod 644 -- {} +
Forge Install
java -jar forge-[version]-installer.jar --installServer
Alacritty Terminfo
# on source
infocmp > alacritty.terminfo
# sftp transfer to target
# on target
tic -x alacritty.terminfo
Telegraf Repo
Debian
curl -sL https://repos.influxdata.com/influxdb.key | apt-key add -
DISTRIB_ID=$(lsb_release -c -s)
echo "deb https://repos.influxdata.com/debian ${DISTRIB_ID} stable" | tee /etc/apt/sources.list.d/influxdb.list