out=$SPLUNK_HOME/etc/apps/search/lookups/services.csv
awk 'BEGIN {
print "port,proto,port_name,port_desc"
} NR > 1 && $0 !~ /^(#|\s*$)/ {
split($2, p, "/")
name=$1
port=p[1]π§
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 | |
| # Save Twitch live streams via streamlink | |
| set -euo pipefail | |
| shopt -s extdebug | |
| declare -gr \ | |
| BASEDIR='/mnt/pool0/media/archive/twitch' \ | |
| BASEURL='https://api.twitch.tv/helix/streams' \ | |
| CLIENT="${CLIENT:-}" \ |
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
| [Unit] | |
| Description=Build binary ZFS module packages and publish repo | |
| RequiresMountsFor=/mnt/pool0/data/app /mnt/pool0/mirror/repo | |
| [Service] | |
| Type=exec | |
| Restart=no | |
| TimeoutSec=10 | |
| ExecStart=/mnt/pool0/data/app/repo/debian-zfs/bin/zfs-module-build -y | |
| EnvironmentFile=-/mnt/pool0/data/app/repo/debian-zfs/etc/environment |
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 | |
| config=' | |
| [ca_cert] | |
| basicConstraints=critical,CA:true,pathlen:1 | |
| authorityKeyIdentifier=keyid:always,issuer | |
| subjectKeyIdentifier=hash | |
| keyUsage=critical,keyCertSign,cRLSign | |
| [sign_cert] |
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 | |
| # Splice VOD list via ffmpeg (in remote container) | |
| set -euo pipefail | |
| shopt -s extdebug | |
| export REMOTE=debsrv01.dm4productions.com | |
| export VOD_DIR=/mnt/pool0/media/archive/twitch | |
| export OHNO=twitch_disconnect_4s.m2t |
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 | |
| # Updated 2025-06-02 by AfroThundr | |
| ''' | |
| Fixup JSON dates exported by .NET JavaScriptSerializer | |
| Example input file: | |
| > $FormatEnumerationLimit = -1 | |
| > Get-ADUser -Filter * -Properties * | |
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 | |
| # Borg-like ZFS pool snapshot and retention with configurable policies | |
| # with inspiration from borgbackup: borg/src/borg/archiver/prune_cmd.py | |
| # Version 0.2.7 modified 2026-01-07 by AfroThundr | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # For issues or updated versions of this script, browse to the following URL: | |
| # https://gist.github.com/AfroThundr3007730/a4c58c13a97cb20a08720eed5d53d4c5 | |
| """Borg-like ZFS pool snapshot and retention with configurable policies""" |
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 | |
| set -euo pipefail | |
| shopt -s extdebug | |
| # Purge extensions cache | |
| rm -fr /vscode{,/vscode-server}/extensionsCache/* \ | |
| ~/.vscode-{server,remote}/extensionsCache/* | |
| # Remove older extension versions |
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
| // switch to menlo proxy: π | |
| javascript:(()=>window.location.replace('https://safe.menlosecurity.com/'+window.location))() | |
| ; | |
| // switch to wayback machine: ποΈ | |
| javascript:(()=>window.location.replace('https://web.archive.org/'+window.location))() | |
| ; | |
| // invert the current page: π | |
| javascript:(()=>document.head.insertAdjacentHTML('beforeend','<style>html{filter:invert(1) hue-rotate(180deg)}img{filter:invert(1) hue-rotate(180deg)}</style>'))() | |
| ; | |
| // invert the current pdf (pdfJS): π |
This all started because I wanted to use [System.IO.FileNotFoundException][1]
in a function. Specifically, [this constructor][2], which allows you to set the
error message and the file that caused the exception:
public FileNotFoundException (string? message, string? fileName);NewerOlder