Skip to content

Instantly share code, notes, and snippets.

View willjasen's full-sized avatar
💭
making the nodes magically talk to each other

willjasen

💭
making the nodes magically talk to each other
View GitHub Profile
@willjasen
willjasen / 10-wancarp
Last active May 1, 2025 07:45 — forked from spali/10-wancarp
Disable WAN interfaces when CARP is down
#!/usr/local/bin/php
<?php
/*
This script can be used with OPNsense when using CARP in certain circumstances where CARP is desired on the LAN side
but where CARP cannot run on the WAN side. This script runs each time an event by CARP is generated. In the event that
there are multiple LAN interfaces where CARP is enabled, this script will check that all interfaces where CARP is
enabled are in a particular state (MASTER/BACKUP) before enabling or disabling its WAN interfaces.
*/
@willjasen
willjasen / plexDatabaseBackupScript.sh
Last active July 24, 2019 00:19 — forked from ssmereka/plexDatabaseBackupScript.sh
Plex Media Server database backup script.
#!/bin/bash
# Backup a Plex database.
# Author Scott Smereka
# Author willjasen
# Version 2.0
# Script Tested on:
# Ubuntu 12.04 on 2/2/2014 [ OK ]