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 | |
| # | |
| # uos-supervisor-cert-fix.sh | |
| # | |
| # UniFi OS Server: diagnose and fix "update keeps failing" caused by a custom | |
| # TLS certificate having been written over the INTERNAL cert (unifi-core.crt). | |
| # | |
| # The supervisor / update control channel connects to the core over loopback | |
| # (https://127.0.0.1:<supervisor-port>) with strict TLS hostname verification. | |
| # The internal cert must therefore carry a 127.0.0.1 SAN. When a user installs a |
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 | |
| # Install as /usr/local/pkg/pfblockerng/hooks/hook_post_haproxy.sh so it appears in the Hooks GUI (pfBlockerNG >= 4.0.0) | |
| # We are not using pfBlockerNG's modification flags because HAProxy may be out of sync even though nothing changed in *this* update via pfBlockerNG | |
| if [ "$PFB_PRE_UNINSTALL" -gt 0 ]; then | |
| echo "Skipping update on uninstall..." | |
| exit 0 | |
| 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/sh | |
| # Install qemu-guest-agent | |
| pkg update | |
| pkg install -y qemu-guest-agent | |
| # Enable it in rc.conf.local | |
| cat > /etc/rc.conf.local << EOF | |
| qemu_guest_agent_enable="YES" | |
| qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log" |
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
| # Periodic reconciliation sweep: copies any source footage MISSING on the backup, | |
| # over SFTP, on an interval. Backstop for the per-upload push when the backup was | |
| # unavailable for a while. COPY ONLY (never sync) — it never deletes from the | |
| # backup, so the backup's own (longer) retention stays in sole control of trimming. | |
| # | |
| # Add this service to your existing docker-compose.yml on the PRIMARY host. | |
| # | |
| # Uses the official rclone image with an SFTP remote configured via environment | |
| # variables (RCLONE_CONFIG_<REMOTE>_*), so there's no config file to manage. | |
| # The remote here is named "backup". |
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
| FROM python:3.14.5-slim | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir fastapi uvicorn | |
| COPY relay.py . | |
| CMD ["uvicorn", "relay:app", "--host", "127.0.0.1", "--port", "8099"] |
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 | |
| set -euo pipefail | |
| # ╔══════════════════════════════════════════════════════════════════════════╗ | |
| # ║ Arcane bidirectional migrator ║ | |
| # ║ ║ | |
| # ║ ── DISCLAIMER ── ║ | |
| # ║ This script was generated by Claude (an AI assistant by Anthropic) in ║ | |
| # ║ collaboration with the user. It is NOT an official Arcane tool and is ║ | |
| # ║ not affiliated with or endorsed by the Arcane project (getarcaneapp). ║ |
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 | |
| # Drop this script in /usr/local/pkg/pfblockerng/hooks | |
| if [ "$PFB_PRE_UNINSTALL" -gt 0 ]; then | |
| echo "Skipping update on uninstall..." | |
| exit 0 | |
| fi | |
| # SIMPLE PID GUARD: Exit if this script is already running elsewhere |
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 | |
| docker network create -d macvlan \ | |
| --subnet=10.255.0.0/16 --gateway=10.255.0.1 \ | |
| --ipv6 \ | |
| --subnet=fd00:abba::/32 --gateway=fd00:abba::1 \ | |
| -o parent=ens18 \ | |
| -o macvlan_mode=bridge firewall-macvlan |
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
| # Copy this file to /etc/systemd/system/ and run `systemctl enable uosserver-healthcheck` | |
| [Unit] | |
| Description=Unifi UOS Server Healthcheck | |
| After=uosserver.service | |
| [Service] | |
| Type=oneshot | |
| ExecStartPre=/bin/sleep 30s | |
| ExecStart=/bin/uosserver-healthcheck |
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
| # This enabled the power settings present in the script | |
| # >> Skip this file for unRAID, since it does not use systemd << | |
| # Put this file in /etc/systemd/system/power.service | |
| # Then manually run it, 'systemctl start power' | |
| # Check the output with 'systemctl status power' | |
| # Then enable it with 'systemctl enable power' | |
| [Unit] |
NewerOlder