Skip to content

Instantly share code, notes, and snippets.

@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
@ergosteur
ergosteur / encode-targetsize-43-crop.sh
Created September 23, 2025 22:45
encode-ntsc-43-improved.sh - Batch encode videos to NTSC 4:3 with hardware accel (multi-OS)
#!/usr/bin/env bash
#
# encode-targetsize-43-crop.sh - Batch encode videos to NTSC 4:3 with hardware accel (multi-OS)
# Targeting iGPUs (Apple Silicon, Intel HD, Intel Arc)
# Uses VideoToolbox on macOS, VAAPI on Linux, and QuickSync on Windows.
#
set -euo pipefail
# --- Default Settings ---
VIDEO_BITRATE="1500k"
@ergosteur
ergosteur / LinkExtractorUserscript.js
Created September 13, 2025 21:40
Extract Links (Universal, Configurable Patterns) - Universal lazy-scroll link extractor with config, HUD, stop button, and Tampermonkey menu
// ==UserScript==
// @name Extract Links (Universal, Configurable Patterns)
// @namespace ergosteur
// @version 2.9
// @description Universal lazy-scroll link extractor with config, HUD, stop button, and Tampermonkey menu
// @match *://*/*
// @grant GM_registerMenuCommand
// ==/UserScript==
(function () {