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 | |
| # | |
| # 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" |
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
| <# | |
| .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: |
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/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 |
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 | |
| # | |
| # 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" |
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
| // ==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 () { |
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
| @echo off | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| REM ============================================================================ | |
| REM == Simple SSH Link Protocol Handler for Windows == | |
| REM == Uses the built-in Windows OpenSSH client. == | |
| REM == Includes self-installing registry setup. == | |
| REM == To install, right-click and "Run as administrator". == | |
| REM == == | |
| REM == Public Domain. https://tcpip.wtf (Modified from original) == |
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/bash | |
| # --- Script to create a Firefox Single-Site Browser (SSB) --- | |
| # V8: Implements a slim, auto-hiding toolbar instead of a fully hidden one. | |
| # Original idea /u/Apoema - https://www.reddit.com/r/firefox/comments/li2lqg/comment/gn2sltw/ | |
| # Made with AI assistance in case you couldn't tell by the excessive use of emoji. | |
| echo "🔥 Firefox SSB Creator (v8) 🔥" | |
| echo "------------------------------" |
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 | |
| # setup-git-email-enforcer.sh | |
| # This script enforces using the GitHub anon email for all commits. | |
| GOOD_EMAIL="1992147+ergosteur@users.noreply.github.com" | |
| HOOKS_DIR="$HOME/.git-hooks" | |
| HOOK_FILE="$HOOKS_DIR/commit-msg" | |
| # Create hooks dir if it doesn't exist | |
| mkdir -p "$HOOKS_DIR" |
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 python3 | |
| import os | |
| import sys | |
| import tarfile | |
| import tempfile | |
| import subprocess | |
| import xml.etree.ElementTree as ET | |
| import argparse | |
| import shutil |
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
| # DNS_LeaseEvent | |
| # Handles a single DHCP lease bind or release/expire event | |
| # 1) Locate the exact lease by its MAC & IP | |
| :local leaseId [/ip dhcp-server lease find where mac-address=$leaseActMAC and address=$leaseActIP] | |
| :if ($leaseId = "") do={ | |
| :log warning "DNS_LeaseEvent: lease not found for $leaseActMAC / $leaseActIP, aborting" | |
| :return | |
| } |
NewerOlder