Skip to content

Instantly share code, notes, and snippets.

View repcsi's full-sized avatar

repcsi repcsi

View GitHub Profile
curl -sSL https://install.pi-hole.net | bash
ffmpeg -i chunkies.m3u8 -codec copy output.mp4
If TS:
for file in $(cat chunks.m3u8 ); do cat $file.ts >> all.ts ; done
ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4
ffmpeg -i inputfile.mkv -codec copy outputfile.mp4
ffmpeg -i inputfile.mkv -codec copy -c:a aac outputfile.mp4
Under File Storage -> Run a command
/etc/motioneye/convert.sh %f
convert.sh:
#!/bin/bash
FILEPATH="$1"
TMPPATH=$(mktemp).mp4
yum install ssmtp
/etc/ssmtp/ssmtp.conf:
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt
[email protected]
mailhub=smtp.gmail.com:587
[email protected]
AuthPass=userpass
UseSTARTTLS=YES
UseTLS=Yes
Install ssmtp
/usr/local/etc/ssmtp/ssmtp.conf:
[email protected]
mailhub=smtp.gmail.com:587
[email protected]
AuthPass=userpass
UseSTARTTLS=YES
rc.conf:
Mint 19.2
disable kdb backlight to avoid lockup at boot:
ln -s /dev/null /var/lib/systemd/backlight/platform-dell-laptop\:leds\:dell\:\:kbd_backlight
It's actually this command, but I did not manage to mount up the system for systemctl to work:
sudo systemctl mask systemd-backlight@leds\:dell\:\:kbd_backlight.service
For wifi to work the Broadcom 3rd party driver install is needed (broadcom, what did you expect? - closed drivers..)