Skip to content

Instantly share code, notes, and snippets.

View repcsi's full-sized avatar

repcsi repcsi

View GitHub Profile
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..)
Install ssmtp
/usr/local/etc/ssmtp/ssmtp.conf:
root=destination@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=useracc@gmail.com
AuthPass=userpass
UseSTARTTLS=YES
rc.conf:
yum install ssmtp
/etc/ssmtp/ssmtp.conf:
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt
root=useracc@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=useracc@gmail.com
AuthPass=userpass
UseSTARTTLS=YES
UseTLS=Yes
Under File Storage -> Run a command
/etc/motioneye/convert.sh %f
convert.sh:
#!/bin/bash
FILEPATH="$1"
TMPPATH=$(mktemp).mp4
ffmpeg -i inputfile.mkv -codec copy outputfile.mp4
ffmpeg -i inputfile.mkv -codec copy -c:a aac outputfile.mp4
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
curl -sSL https://install.pi-hole.net | bash
OctoPi:
network={
ssid="Your Wifi SSID"
psk="supersecretwifipassword"
}
==========================================================
RASPBIAN:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
Prusa Mesh Level (didn't change - used default):
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
G81 ; check mesh leveling results
old kernels:
Vanila:
## dnf repoquery set negative --latest-limit ##
## as how many old kernels you want keep ##
dnf remove $(dnf repoquery --installonly --latest-limit=-2 -q)
YUM-UTILS:
## CentOS, Red Hat (RHEL) ##
yum install yum-utils