Skip to content

Instantly share code, notes, and snippets.

@verybadsoldier
verybadsoldier / install_wifi_watchdog.sh
Last active January 16, 2026 15:44
Installer for Squeezebox Radio Wifi Watchdog
#!/bin/sh
#
# WiFi Watchdog Installer / Updater / Uninstaller
#
# Usage:
# Install/Update: ./install_wifi_watchdog.sh <TARGET_IP> [INTERVAL_MINUTES]
# Uninstall: ./install_wifi_watchdog.sh uninstall
#
# Examples:
# ./install_wifi_watchdog.sh 192.168.2.1
@verybadsoldier
verybadsoldier / aculfw_latencytest.cpp
Last active January 9, 2019 08:15
HM-MOD-UART-RPI latency test
#include <iostream>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdexcept>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
@verybadsoldier
verybadsoldier / google_iprange_update.sh
Last active February 9, 2023 12:34
Script to update ipset list "google-ips" with Google IP range
#!/usr/bin/env bash
ipset_name="google-ips"
ipset_name_tmp="google-ips-tmp"
iptables_name="nginx-google-whitelist"
port="7654"
#########################################################
ipset -q create "$ipset_name" nethash