Skip to content

Instantly share code, notes, and snippets.

View chutch3's full-sized avatar

Cody Hutchens chutch3

View GitHub Profile
@chutch3
chutch3 / development-context-prompt.txt
Last active March 31, 2026 18:40
A prompt I use to make help keep my development consistent
Review any planning documents in the .plan folder to get context. If find any ambiguity in execution, you must ask for my clarification
A few biases you need to follow for python development:
- you must follow red/green/refactor
- structure the code in a way that dependencies are injectable.
- YAGNI
- 12 factor app principals
- Extreme programming principals
- test class when testing a class and when testing a global method it should just be a test method
- pytest fixtures should be defined in the class when needed
@chutch3
chutch3 / beelink-ser3-linux-fixes.md
Last active February 15, 2026 19:29
Fix for Dual Monitor Flickering and TSC Clock Instability on Beelink SER3 / Ryzen 3750H (Ubuntu/Debian)
@chutch3
chutch3 / fix-linux-boot-after-gparted.md
Created November 22, 2025 00:49
Linux Boot Repair After GParted Partition Changes

Fixing Linux Boot After Resizing or Moving Partitions with GParted

Why This Happens

When you move or resize partitions, GParted may change partition UUIDs. The bootloader (GRUB) and /etc/fstab reference partitions by UUID, so those references become invalid.

Prerequisites

  • Boot from a live USB of your Linux distribution
@chutch3
chutch3 / helpful-subagent-prompts.md
Created August 7, 2025 16:10
Helpful subagents prompts
---
name: simplicity-reviewer
description: Use this agent when you need to review code changes for unnecessary complexity, over-engineering, or violations of the YAGNI (You Aren't Gonna Need It) principle. This agent should be called after code has been written or modified to ensure it maintains simplicity and clarity. Examples: <example>Context: The user has just implemented a new feature with configuration classes and abstraction layers. user: 'I've added a new configuration system for handling different client types with a factory pattern and multiple inheritance levels' assistant: 'Let me use the simplicity-reviewer agent to check if this implementation might be over-engineered for the current requirements' <commentary>Since the user has implemented what sounds like potentially complex architecture, use the simplicity-reviewer agent to evaluate if the complexity is justified.</commentary></example> <example>Context: The user has written a function with multiple layers of indirection. user: 'Here's my 
@chutch3
chutch3 / setup-hammerspoon-shiftit.sh
Last active July 17, 2025 13:18
Complete Hammerspoon ShiftIt setup script for macOS - Automates installation and configuration of keyboard-driven window management
#!/bin/bash
# Hammerspoon ShiftIt Setup Script for macOS
# This script automates the installation and configuration of Hammerspoon with ShiftIt
set -e # Exit on any error
echo "🔨 Hammerspoon ShiftIt Setup Script"
echo "===================================="
echo ""
@chutch3
chutch3 / device_refresher.groovy
Last active June 29, 2025 14:37
A Hubitat app that automatically refreshes the status of selected Z-Wave devices on a user-defined schedule. Ideal for users who want to keep device states up-to-date and avoid stale readings. Supports both simple interval selection and advanced cron expressions.
definition(
name: "Device Refresher",
namespace: "chutchens",
author: "Cody Hutchens",
description: "Refresh Z-Wave Devices on a schedule",
category: "Convenience",
iconUrl: "https://cdn-icons-png.flaticon.com/512/1828/1828817.png",
iconX2Url: "https://cdn-icons-png.flaticon.com/512/1828/1828817.png"
)