Skip to content

Instantly share code, notes, and snippets.

View joelhooks's full-sized avatar
🍄

Joel Hooks joelhooks

🍄
View GitHub Profile
@joelhooks
joelhooks / gist:fb7b5c23bcfb094b87be06bdf32b173e
Created December 1, 2025 17:17
Installing MCP Agent Mail on macOS with Python 3.14 and launchd
# Installing MCP Agent Mail on macOS (Python 3.14 + launchd)
A chronicle of the fuckery involved in getting [mcp_agent_mail](https://github.com/Dicklesworthstone/mcp_agent_mail) running as a launchd service on macOS with Python 3.14.
## The Goal
Run Agent Mail as a persistent service for multi-agent beads coordination. Prevents collision when multiple AI agents (Claude, Cursor, OpenCode, etc.) work the same repo.
## The Fuckery
@joelhooks
joelhooks / AGENTS.md
Last active December 6, 2025 05:50
my opencode global AGENTS prompt

Who You're Working With

Joel Hooks - co-founder of egghead.io, education at Vercel, builds badass courses via Skill Recordings (Total TypeScript, Pro Tailwind). Deep background in bootstrapping, systems thinking, and developer education. Lives in the Next.js/React ecosystem daily - RSC, server components, suspense, streaming, caching. Skip the tutorials.

<tool_preferences>

always use beads bd for planning and task management

Reach for tools in this order:

  1. Read/Edit - direct file operations over bash cat/sed
  2. ast-grep - structural code search over regex grep
@joelhooks
joelhooks / meal-prep.md
Last active December 19, 2024 18:15
Complete Meal Prep System Guide

Complete Meal Prep System Guide

This meal plan's structure optimizes your body's natural rhythms and hormonal patterns throughout the day. The early breakfast stabilizes cortisol and starts your metabolism, while the pre/post workout nutrition maximizes training adaptations and muscle protein synthesis. Strategic carb timing around workouts enhances performance and recovery, while the protein distribution supports continuous muscle maintenance. The earlier dinner and light evening snack align with natural insulin sensitivity patterns and support quality sleep. This consistent approach helps optimize testosterone production, manage cortisol, regulate blood sugar, and enhance overall metabolic flexibility, leading to better body composition and sustained energy levels.

Detailed Meal Breakdown

Early Breakfast (500 cal | P:35g | C:50g | F:15g)

  • 1 cup oats (300 cal | 10g P | 45g C | 5g F)
  • 1 scoop protein powder (120 cal | 24g P | 2g C | 1g F)
  • 1 tbsp nut butter (98 cal | 1g P | 3g C | 9g F)
@joelhooks
joelhooks / main.ts
Created July 22, 2024 04:42 — forked from sadalsvvd/main.ts
autonomous LLM graph script
import dotenv from "dotenv";
import Anthropic from "@anthropic-ai/sdk";
import { setTimeout } from "timers/promises";
import * as fs from "fs/promises";
import { getSession } from "./neo4j";
// Configuration and Initialization
dotenv.config();
const anthropic = new Anthropic({
@joelhooks
joelhooks / README.md
Last active October 5, 2023 03:04 — forked from panva/README.md
Simple Device Flow Login CLI implementation

Simple Device Flow Login CLI implementation

run

npx https://gist.github.com/joelhooks/c585cdab12b986fc7f1a057796e99b76
import {publicProcedure, router} from '@skillrecordings/skill-lesson'
import {isEmpty} from 'lodash'
import {getToken} from 'next-auth/jwt'
import {getSubscriberFromCookie} from '@skillrecordings/skill-lesson/utils/ck-subscriber-from-cookie'
export const offerRouter = router({
getNextOffer: publicProcedure.query(async ({ctx}) => {
const token = await getToken({req: ctx.req})
const subscriber = await getSubscriberFromCookie(ctx.req)
@joelhooks
joelhooks / realtime-web.md
Created February 6, 2023 19:28
Real-Time Web Learning Path on egghead.io

Real Time Web Learning Path

  1. A deep understanding of the protocols, operation, architecture and components that support the stack underneath large scale WebRTC.
  2. Skills in building and maintaining a Web Socket server and the client applications interacting with it.
  3. An awareness of the challenges presented in a real time web application built on Web Sockets and WebRTC with a knowledge of the industry standard approaches to solving these.

How will we help students achieve these goals?

@joelhooks
joelhooks / convertkit-stats.ts
Created November 18, 2022 18:24
Load subscriber stats from Convertkit via API
// Name: ck stats for site
// Snippet: ;ck
import "@johnlindquist/kit"
const sites = [
{
name: "Some Account",
ck_secret: await env("SOME_ACCOUNT_CK_SECRET"),
}
@joelhooks
joelhooks / code.mmd
Last active July 23, 2022 22:05
Concept Map of Concept Map Mermaid Diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joelhooks
joelhooks / pagespeed_optimize_images.sh
Created February 25, 2022 23:57 — forked from julianxhokaxhiu/pagespeed_optimize_images.sh
Recursively optimize all PNG and JPG files wherever they are from the script position and inner ( based on OPTING, PNGCRUSH, ADVANCECOMP and JPEGOPTIM )
#!/bin/bash
# https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462
# brew install optipng pngcrush jpegoptim
find . -type f -iname "*.png" -exec optipng -nb -nc {} \;
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \;
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \;