Skip to content

Instantly share code, notes, and snippets.

View felddy's full-sized avatar
🔥
This is fine.

Mark Feldhousen felddy

🔥
This is fine.
View GitHub Profile
@felddy
felddy / narrative.md
Created July 20, 2026 14:37
`git rerere` and the skeleton lineage: from merge to rebase

git rerere and the skeleton lineage: from merge to rebase

Why we merge (and why we'd rather not)

Every cisagov project descends from a skeleton. skeleton-generic is the root; skeleton-python-library, skeleton-docker, skeleton-ansible-role, skeleton-tf-module, skeleton-packer, and friends layer on top of it; and hundreds of real projects layer on top of those.

@felddy
felddy / ai_steering.md
Last active May 8, 2026 14:10
Command to disable Starship in the active terminal. Add to bashrc.d

Shell Environment

Starship Prompt

This workspace uses Starship as the shell prompt, which can produce complex, multi-line output that interferes with terminal command parsing. Always run starship-off at the start of every new terminal session before executing any commands.

# Run this first in every new terminal session
starship-off
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felddy
felddy / 00-README.md
Last active February 4, 2026 22:17
iPac2 Configurations
@felddy
felddy / acme_sh.inc.patch
Created January 25, 2026 18:41
Force "shortlived" profile on Acme managed certificates: pfSense acme 1.0.5
--- /usr/local/pkg/acme/acme_sh.inc
+++ /usr/local/pkg/acme/acme_sh.inc
@@ -183,6 +183,9 @@
if (!empty($this->preferredchain)) {
$cmdparameters .= " --preferred-chain " . escapeshellarg($this->preferredchain);
}
+ /* patch: Force Let's Encrypt "shortlived" profile */
+ /* see: https://redmine.pfsense.org/issues/16604 */
+ $cmdparameters .= " --cert-profile " . escapeshellarg("shortlived");
if (!empty($this->addressfamily)) {
@felddy
felddy / mailfiles.py
Created August 25, 2025 17:47
Mail files directly to an SMTP server
#!/usr/bin/env python3
"""
mailfiles.py — Proof-of-concept CLI to email file(s) via SMTP.
Standard library only. Loads attachments into memory.
Defaults:
- If --server is omitted, MX of first --to recipient is used on port 25.
- Opportunistic STARTTLS: try if supported; use --require-starttls to enforce,
or --no-starttls to disable. Use --ssl for implicit TLS (e.g., 465).
@felddy
felddy / tickle.yml
Created December 4, 2024 16:02
Repo Tickle Action for use when GitHub Actions refuses to run
---
name: "Repo Tickle Action"
on:
push:
pull_request:
jobs:
tickle-the-repo:
name: "Tickling the Repo 🪶"
@felddy
felddy / foundryvtt-module-check.sh
Last active April 13, 2026 23:16
A container patch for foundryvtt-docker to check module compatibility.
#!/bin/bash
# This script checks the compatibility of all modules in the modules directory with the specified FoundryVTT version.
# Constants
MODULES_DIR="/data/Data/modules"
TARGET_VERSION="14.360"
TARGET_VERSION_MAJOR=$(echo "$TARGET_VERSION" | cut -d. -f1)
export PATH="/tmp/npm-local/node_modules/.bin:$PATH"
@felddy
felddy / touch-vtt-issue-61-patch.sh
Created November 28, 2023 17:53
Patch for FoundryVTT to correct issue 61 of the touch-vtt module
#!/bin/ash
# Touch-VTT Issue 61 Fix
# =====================
PATCH_DOC_URL="https://github.com/Oromis/touch-vtt/issues/61"
PATCH_NAME="Fix for touch-vtt issue #61"
log "Applying \"${PATCH_NAME}\""
log "See: ${PATCH_DOC_URL}"
@felddy
felddy / add-hash-tags.py
Created September 1, 2023 23:40
Script to add comments containing tag labels for sha-pinned GitHub Action uses
#!/usr/bin/env python3
import argparse
import os
import re
import subprocess
import json
from packaging.version import parse as parse_version
from functools import lru_cache