Skip to content

Instantly share code, notes, and snippets.

@mitchnick
mitchnick / ax-profile.json
Last active June 25, 2026 20:13
ax profile - mitchnick
{
"v": 1,
"github": "mitchnick",
"generated_at": "2026-06-25T20:12:55.866Z",
"window_days": 30,
"stats": {
"sessions": 2013,
"active_days": 27,
"streak_days": 19,
"tokens": {
@mitchnick
mitchnick / envrc-lockdown.md
Created May 14, 2026 14:46
Claude Code direnv lockdown — two-layer permissions + PreToolUse hook pattern for blocking secret-file access

.envrc Lockdown

How we keep Claude Code from ever reading, editing, sourcing, or shelling out to .envrc (or any sibling like .envrc.local). Direnv files hold production secrets — once they leak into a transcript, prompt cache, or background tool call, they're effectively public. Defense-in-depth: deny rules at the permission layer, plus a PreToolUse hook that catches anything that slips past the matcher (piped commands, command substitution, novel binaries).

The pattern

Drop this into .claude/settings.json (project) or ~/.claude/settings.json (user, if you want it on every machine). Two layers:

  1. permissions.deny — blanket-denies the common file-handling tools and shells out for every reader/editor I could think of, against both .envrc and globs. Each binary gets its own entry because Claude Code matches on the command's first token.
  2. hooks.PreToolUse on Bash — fail-closed regex over the resolved command string. Catches anything not enumerated above (piped readers, `xargs c
@mitchnick
mitchnick / all_email_provider_domains.txt
Created April 6, 2025 02:10 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@mitchnick
mitchnick / free_email_provider_domains.txt
Created April 5, 2025 02:20 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com

Keybase proof

I hereby claim:

  • I am mitchnick on github.
  • I am mitchnick (https://keybase.io/mitchnick) on keybase.
  • I have a public key whose fingerprint is C0D5 A763 BD7E 0A51 42D6 AA33 4D15 1AC7 C5F8 AF87

To claim this, I am signing this object: