#snippets
2026
Skill: follow-up
A small meta-skill that runs when I ask an agent to 'follow up' after a session. It reviews what changed, runs the right sync, or recommends durable updates only when the value clearly outweighs the cost.
How to Stop OpenCode from Reading .env Files
Use an OpenCode plugin to block common .env reads, credential-file access, and environment dumps before tool execution.
How to Stop Devin CLI from Reading .env Files
Stop Devin CLI from reading .env files with a registered tool hook. Block credential access and environment dumps using the correct denial exit code.
How to Stop Cursor from Reading .env Files
Protect .env files and API keys in Cursor with .cursorignore and file and shell hooks. Keep secrets out of indexing and AI context.
How to Stop Claude Code from Reading .env Files
Stop Claude Code from reading .env files with a registered PreToolUse hook. Block common secret-file reads and keep API keys out of AI context.
How to Stop Google Antigravity from Reading .env Files
Protect .env files, API tokens, and private keys in Google Antigravity with a PreToolUse hook and safe environment templates.
2022
How to get WooCommerce default URLs with PHP functions
Get the WooCommerce cart, checkout, account, and shop URLs with built-in PHP functions instead of hardcoding them.
How to break line in React i18n JSON translations
Two ways to add a line break to text from a react-i18next JSON file — \n with white-space pre-line, or <br/> with the Trans component.
My daily grep commands
The grep commands I actually use every day — recursive search, excluding folders and file types, and listing matching file names only.
How to use ComponentWillUnmount in a Functional Component
Replace componentWillUnmount with a useEffect cleanup function in React functional components.
2021
Create a React Progress Bar Component
A reusable React reading progress bar (scroll progress indicator) with SCSS modules that only starts filling once the article reaches the top of the screen.
How to change a WordPress username
WordPress greys out the username field. Change it with a plugin, or directly in the database through phpMyAdmin.
How to list all global npm packages
List every globally installed npm package with a single command.
How to use CSS/SCSS modules with TypeScript
Make TypeScript stop complaining about SCSS module imports with a single .d.ts declaration file.