Skip to content

Instantly share code, notes, and snippets.

@ergosteur
ergosteur / lightdhcpy.py
Created May 11, 2026 22:19
LightDHCPy - zero-dependency IPv4 DHCP server written entirely in standard Python 3
#!/usr/bin/env python3
"""
=============================================================================
LightDHCPy - The Lightweight Python DHCP Server
=============================================================================
Description:
A feature-rich, zero-dependency IPv4 DHCP server written entirely in
standard Python 3. It handles the basic DORA process, manages static
and dynamic leases, and includes a built-in Web UI for real-time
monitoring and configuration hot-reloading.
@ergosteur
ergosteur / install-ookla-speedtest-cli.sh
Last active March 19, 2026 01:31
Script to automatically install ookla's speedtest cli binary
#!/bin/bash
# Default configuration
VERSION="1.2.0"
BASE_URL="https://install.speedtest.net/app/cli"
BINARY_NAME="speedtest"
# --- Functions ---
show_help() {
@ergosteur
ergosteur / Repair-Winget.ps1
Created February 19, 2026 18:19
Repairs and configures Winget for enterprise environments (Intune/SCCM/RMM) with unified Standalone/Detect/Remediate modes.
<#
.SYNOPSIS
Repairs and configures Winget for enterprise environments (Intune/SCCM/RMM) with unified Standalone/Detect/Remediate modes.
.DESCRIPTION
This script is designed to be used in three modes, controlled by the $ExecutionMode variable:
$ExecutionMode = "Standalone" # For manual/RMM/SCCM use (default)
$ExecutionMode = "Detect" # For Intune detection scripts
$ExecutionMode = "Remediate" # For Intune remediation scripts
@ergosteur
ergosteur / Fizz Mobile-IPv4.mobileconfig
Last active February 17, 2026 22:14
iOS mobileconfig file for forcing IPv4 on Fizz Mobility cellular data APN to resolve VPN connectivity issues - https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1Ki000000fxlXKAQ&lang=en_US
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<!-- Configures the initial network connection APN -->
<key>AttachAPN</key>
<dict>
@ergosteur
ergosteur / Bell Mobility-IPv4.mobileconfig
Created February 17, 2026 22:01
iOS mobileconfig file for forcing IPv4 on Bell Mobility cellular data APN to resolve VPN connectivity issues - https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1Ki000000fxlXKAQ&lang=en_US
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<!-- Configures the initial network connection APN -->
<key>AttachAPN</key>
<dict>
@ergosteur
ergosteur / Fido-IPv4.mobileconfig
Last active February 17, 2026 22:02
iOS mobileconfig file for forcing IPv4 on Fido cellular data APN to resolve VPN connectivity issues - https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1Ki000000fxlXKAQ&lang=en_US
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<!-- Configures the initial network connection APN -->
<key>AttachAPN</key>
<dict>
@ergosteur
ergosteur / Public Mobile-IPv4-plus-Quad9_DNS.mobileconfig
Last active February 17, 2026 22:26
iOS mobileconfig file for forcing IPv4 on Public Mobile cellular data APN to resolve VPN connectivity issues - https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1Ki000000fxlXKAQ&lang=en_US
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadContent</key>
<array>
<!-- PAYLOAD 1: DNS SETTINGS (Quad9 ECS) -->
<dict>
@ergosteur
ergosteur / pxe-netbootxyz.sh
Created December 24, 2025 04:08
BIOS and UEFI PXE configuration script for dnsmasq on Unifi Cloud Gateway
#!/bin/sh
#
# Regenerate UniFi PXE override for netboot.xyz - with BIOS and UEFI support
# Run at boot using on-boot-script-2.x
# (see https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script-2.x)
# for Ubiquiti UCG Fiber
#
OUT="/run/dnsmasq.dhcp.conf.d/99-pxe-netbootxyz.conf"
@ergosteur
ergosteur / Get-Wifi-Profile-Analyzer.ps1
Created December 10, 2025 21:51
PowerShell script that analyzes Windows Wi-Fi profiles to extract SSID, Security, and Certificate Trust details.
<#
.SYNOPSIS
Analyzes Windows Wi-Fi profiles to extract SSID, Security, and Certificate Trust details.
.DESCRIPTION
This tool provides a detailed analysis of Wi-Fi connection profiles, specifically focusing on
Enterprise (802.1X) security settings. It extracts the Trusted Root CA Thumbprint, Server
Name constraints, and validates if the required certificates are present in the local machine store.
It operates in three modes:
@ergosteur
ergosteur / fix-ups-permissions.sh
Created November 12, 2025 03:07
script to fix USB permissions for NUT (Network UPS Tools)
#!/bin/bash
# fix-ups-permissions.sh
# Standalone script to fix USB permissions for NUT (Network UPS Tools)
set -e
if [ "$EUID" -ne 0 ]; then
echo "ERROR: Please run as root or with sudo." >&2
exit 1
fi