Skip to content

Instantly share code, notes, and snippets.

View StuMason's full-sized avatar
🏋️‍♂️
Testing

Stu Mason StuMason

🏋️‍♂️
Testing
View GitHub Profile
@StuMason
StuMason / 01-inbox.png
Last active July 9, 2026 05:49
TidyLinker mobile slice 5a screenshots
01-inbox.png
@StuMason
StuMason / 01-account-earnings-row.png
Created July 8, 2026 20:39
TidyLinker mobile slice 4d screenshots
01-account-earnings-row.png
@StuMason
StuMason / 01-account-verification-row.png
Created July 8, 2026 14:49
TidyLinker mobile slice 4c screenshots
01-account-verification-row.png
@StuMason
StuMason / 01-account-availability-row.png
Last active July 8, 2026 13:54
TidyLinker mobile slice 4b screenshots
01-account-availability-row.png
@StuMason
StuMason / 01-cleaner-home.png
Last active July 8, 2026 09:42
TidyLinker mobile slice 4a screenshots
01-cleaner-home.png
@StuMason
StuMason / cdr.md
Created March 24, 2026 19:01
Conversation Decision Record - stick this in your CLAUDE.md and smoke it.

You are creating a commit that includes a Conversation Decision Record (CDR). Follow these steps exactly.

This CDR is likely the ONLY record of what happened and why. There may be no PR, no code review, no human reading the diff before or after this lands. Write accordingly — capture everything, because nothing else will.

Step 1: Gather git context

Run these in parallel:

  • git status (never use -uall)
  • git diff and git diff --staged to see all changes
  • git log --oneline -10 for recent commit style
@StuMason
StuMason / statusline.sh
Created February 25, 2026 13:33
Custom statusline script for Claude Code CLI showing repo name, git branch (with dirty indicator), color-coded context usage, session cost, duration, lines changed, and active model name.
#!/bin/bash
# Read JSON input once
input=$(cat)
# Extract fields
cwd=$(echo "$input" | jq -r '.workspace.current_dir')
ctx_pct=$(echo "$input" | jq -r '.context_window.used_percentage // 0' | cut -d. -f1)
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
cost_fmt=$(printf '$%.2f' "$cost")
# Tailwind CSS v4 Guide: Key Differences from v3
## Installation
### Using PostCSS (Recommended)
```bash
npm install tailwindcss @tailwindcss/postcss postcss
```
Configure your PostCSS:
@StuMason
StuMason / gist:9e12fd7d726467e1f0889122347cd9c5
Created March 4, 2025 18:13
forge to coolify nixpack.toml
[phases.setup]
nixPkgs = ["...", "python311Packages.supervisor", "php82Extensions.redis"]
[phases.build]
cmds = [
# Create required directories in one command
"mkdir -p /var/log /app/storage/framework/{views,cache,sessions} /app/bootstrap/cache /etc/supervisor/conf.d",
# Set permissions in a single command
"chown -R www-data:www-data /var/log /app/storage /app/bootstrap/cache",
@StuMason
StuMason / gist:b988e3ca426afdd69173a26688de7728
Created March 4, 2025 18:11
forge -> coolify example 1, stuartmason.co.uk
[phases.setup]
nixPkgs = ["...", "python311Packages.supervisor", "php82Extensions.redis"]
[phases.build]
cmds = [
    "mkdir -p /var/log",
    "touch /var/log/nginx-access.log /var/log/nginx-error.log",
    "chown -R www-data:www-data /var/log",
    "chown -R www-data:www-data /app",
    "chmod -R 755 /app",