This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Basic working Frigate NVR config with internal test pattern generation | |
# - For intel graphics | |
# - With PCI Coral TPU | |
# - Recording disabled by default (enable per camera) but default retention configured | |
# - With ffmpeg-generated test pattern as initial camera for debugging | |
# WARNING Disable test pattern camera and go2rtc config to minimize CPU usage once initial setup is complete | |
# | |
mqtt: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f /etc/docker/daemon.json ] ; then | |
echo "/etc/docker/daemon.json already exists, refusing to overwrite it." >&2 | |
exit 1 | |
fi | |
cat <<EOF | sudo tee /etc/docker/daemon.json | |
{ "userns-remap": "default" } | |
EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"MaxStaticBitrate": 7789442, | |
"MaxStreamingBitrate": 7789442, | |
"MusicStreamingTranscodingBitrate": 192000, | |
"DirectPlayProfiles": [ | |
{ | |
"AudioCodec": "vorbis,opus", | |
"Container": "webm", | |
"Type": "Video", | |
"VideoCodec": "vp8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logfiles under /var/log/hosts per rsyslog.d config | |
/var/log/hosts/*/*.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
postrotate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# snmptrapd.log files as per `systemctl edit snmptrapd.service` | |
# (in addition to logging traps to syslog) | |
/var/log/snmptrapd.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Check on "running" status of critical Docker containers | |
# and restart them if they are not running. | |
# | |
# This is necessary because after a hard host machine reboot, many Docker containers will | |
# will not start cleanly. Since Docker restart policies and healthchecks only take effect | |
# once a container has successully started up once, these failed containers will never | |
# start. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# via https://stackoverflow.com/a/53409127 | |
dockerName="${1}" | |
hostCommandLine="${@:2}" | |
#nsenter -n -t "$(docker inspect --format {{.State.Pid}} "${dockerName}")" "${@:2}" | |
nsenter -n -t "$(docker inspect --format {{.State.Pid}} "${dockerName}")" ${hostCommandLine[@]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set path to directory holding docker-compose.yaml | |
#dockerComposeRoot= | |
if [ -z "$dockerComposeRoot" ]; then | |
echo "ERROR: Set dockerComposeRoot before calling $0" >&2 | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.eevblog.com/forum/thermal-imaging/infiray-and-their-p2-pro-discussion/200/ | |
# https://superuser.com/questions/1009969/how-to-extract-a-frame-out-of-a-video-using-ffmpeg | |
# https://stackoverflow.com/questions/37960828/webcam-streaming-from-mac-using-ffmpeg | |
# | |
# Selected pixel format (yuv420p) is not supported by the input device. | |
#[avfoundation @ 0x7f961cd08b40] Supported pixel formats: | |
#[avfoundation @ 0x7f961cd08b40] uyvy422 | |
#[avfoundation @ 0x7f961cd08b40] yuyv422 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Reverse proxy config for Ruckus Unleashed controllers | |
# | |
# Requirements: | |
# | |
# - DNS entries for all unleashed<IPv4 last octet of controllers>.example.com | |
# - DNS entry for unleashed.example.com | |
# - (DNS entries to point to Nginx reverse proxy) | |
# - Wildcard TLS cert on reverse proxy (or SAN cert covering all above mentioned names) | |
# |
NewerOlder