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
| --- a/src/etc/inc/rrd.inc 2026-08-31 10:02:52.168340000 -0400 | |
| +++ b/src/etc/inc/rrd.inc 2026-08-31 13:18:43.532859000 -0400 | |
| @@ -256,21 +256,81 @@ | |
| chown($rrddbpath, "nobody"); | |
| $rrd_pidfile = g_get('varrun_path') . '/updaterrd.sh.pid'; | |
| + $rrd_lockfile = g_get('varrun_path') . '/updaterrd.sh.lock'; | |
| $rrdupdatesh = <<<EOD | |
| #!/bin/sh |
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 | |
| QRY='some-hostname-in-your-tailnet.ts.net' | |
| WANT='100.100.101.101' #expected IP address of that host | |
| RESTART=0 | |
| SVC_RC_FILE='/usr/local/etc/rc.conf.d/tailscaled' | |
| if [ -e /var/run/booting ]; then | |
| logger -t tailscaled "system is booting: skipping check" | |
| exit 0 |
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/zsh --no-rcs | |
| # https://github.com/tailscale/tailscale/issues/18101 | |
| # https://gist.github.com/luckman212/356dfc72396b838a055ec10d315b042b | |
| zmodload zsh/datetime | |
| #get a random peer | |
| ts_json=$(tailscale status --json) | |
| all_peers=$(jq '.Peer | to_entries | map(select(.value.DNSName!="")) | map(.value.DNSName)' <<< "$ts_json") |
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 | |
| # UBNT fanctrl helper script | |
| # ref: https://www.reddit.com/r/Ubiquiti/comments/1fc3uxd/control_the_temperature_of_u7_series_ap/ | |
| # adjust 'AP', 'TEMPS' and 'PWM' values below as needed | |
| AP=192.168.1.100 | |
| ssh \ | |
| -oStrictHostKeyChecking=no \ |
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
| # place in same dir as compose.yml, adjust as needed for your environment | |
| # create a limited user and run `id <username>` to get the PUID/PGID values | |
| TZ=America/New_York | |
| CNAME=speedtest | |
| DOCKER_DIR=/volume1/docker | |
| PUID=1030 | |
| PGID=100 | |
| MARIADB_DATABASE=speedtest-tracker | |
| MARIADB_USER=speedy |
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
| blueprint: | |
| name: Reboot HA host | |
| description: Automated weekly reboot of the entire Home Asistant OS host by Chef de IT | |
| author: Chef de IT | |
| domain: automation | |
| input: | |
| reboot_day: | |
| name: Reboot Day of Week | |
| description: Pick the best day to reboot, e.g. Tuesday | |
| default: tue |
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
| #!/usr/bin/env python3 | |
| # Copyright © 2023 Justin McGettigan | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
| # and associated documentation files (the “Software”), to deal in the Software without | |
| # restriction, including without limitation the rights to use, copy, modify, merge, publish, | |
| # distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the | |
| # Software is furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all copies or |
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 | |
| # This is an example script to force provision a UniFi network device using the controller API | |
| # If you are running this externally then replace localhost with the hostname | |
| baseurl=https://localhost:8443 | |
| # I would make a dedicated admin user for this | |
| username=<username_here> | |
| password=<password_here> |
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
| #!/usr/bin/env python3 | |
| """ | |
| generates multiple random passphrases in one go | |
| https://github.com/ulif/diceware/issues/53 | |
| requires diceware: pip install diceware | |
| """ | |
| import os |
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
| #!/usr/bin/env bash | |
| ENDPOINT='https://hc-ping.com/{insert-HealthChecks-UUID-here}' | |
| #logfile location changed as of v4.1.2-4039 | |
| #LOGFILE='/var/log/synolog/synobackup.log' | |
| LOGFILE='/volume1/@appdata/HyperBackup/log/synolog/synobackup.log' | |
| [[ -e $LOGFILE ]] || exit 1 | |
| awk -f- $LOGFILE <<'EOF' |
NewerOlder