Skip to content

Instantly share code, notes, and snippets.

@gregberns
gregberns / gist-ubuntu-dev.yaml
Created April 19, 2026 22:12
adze config: Ubuntu dev box
name: "Greg's Ubuntu Dev Box"
platform: ubuntu
identity:
git_name: "Greg Berns"
git_email: "[email protected]"
github_user: gregberns
secrets:
- name: GITHUB_TOKEN
@gregberns
gregberns / gist-bootstrap.sh
Last active April 20, 2026 03:44
adze config: macOS dev box + bootstrap script
#!/bin/bash
# Bootstrap a new macOS dev machine with adze
#
# IMPORTANT: Download first, then run — do NOT pipe to bash.
# Homebrew and sudo need interactive stdin.
#
# curl -fsSL https://gist.githubusercontent.com/gregberns/852305ac37f7cfed34b6637de4042f23/raw/gist-bootstrap.sh -o ~/bootstrap.sh
# chmod +x ~/bootstrap.sh
# ~/bootstrap.sh
@gregberns
gregberns / gist:b951f08f2b0b1ac01b0433381654de74
Created April 2, 2026 17:00
Skill: Brainstorm -> Plan -> Spec -> Tasks -> Implement
---
name: spec
description: Collaborative spec and research pipeline — guide from idea through problem space, decomposition, research, and detailed spec to implementation-ready artifacts
---
# /spec — Collaborative Spec & Research Pipeline
You are a spec-writing partner. Your job is to guide the user through a structured process that produces a complete, research-backed specification ready for implementation.
## Input
@gregberns
gregberns / README.md
Created March 6, 2026 19:07
Claude /spec Command

Spec Writing Agent

Instructions

  1. Add the spec.md to .claude/commands/spec.md in a relevant project.
  2. Start Claude
  3. Write up a blob of what you are trying to accomplish, include "Lets use /spec to walk through creating a spec for this idea".

Note

@gregberns
gregberns / research-and-development-orchestrator.md
Created February 4, 2026 20:55
Agent: research-and-development-orchestrator
name research-and-development-orchestrator
description Orchestrates research-driven development process for complex subsystems. Guides through 8 phases - problem definition, decomposition, research planning, research execution, subsystem planning, integration planning, master checklist creation, and implementation. Maintains process-oriented documentation that evolves with the project.
model sonnet
color purple

Research and Development Orchestrator Agent

Role

@gregberns
gregberns / wtadd
Created December 3, 2025 23:12
Git Worktree Creator Script - Useful for running multiple coding agents locally
#!/usr/bin/env node
/**
* Git Worktree Creator Script
*
* This script creates new git worktrees for development, allowing you to work on multiple
* branches simultaneously without switching branches in your main repository.
*
* Key Features:
* - Creates worktrees from any base branch (not just current branch)
#!/bin/zsh
# macOS Server Optimization Script
# Disables unnecessary background processes and services for server use
# Based on community research and tested configurations
# WARNING: This script makes significant changes to your macOS system
# Please read through and understand each section before running
# Test in a non-production environment first
@gregberns
gregberns / setup.sh
Last active August 9, 2025 05:33
MacOS Setup
#!/bin/bash
# Improved Mac Setup Script - Idempotent and Modular
# This script sets up a new Mac development environment with proper error handling
# and idempotency checks.
#
# # Download
# curl ~~Get gist raw url~~ > setup.sh
# chmod +x ~/setup.sh
# ~/setup.sh
@gregberns
gregberns / mcp-server.md
Last active May 16, 2025 06:10
MCP Servers - What the hell are they??

MCP Servers

What the hell is an MCP server?

What do they have to do with LLMs?

Why would I want to use one and why is everyone talking about them?

Story

@gregberns
gregberns / gist:1d089693da82830d708a7d1f1c814de1
Created February 10, 2025 16:26
Postgres Global string search
-- This function will do a global search through a Postgres database.
CREATE OR REPLACE FUNCTION search_columns(
needle text,
haystack_tables name[] default '{}',
haystack_schema name[] default '{}'
)
RETURNS table(schemaname text, tablename text, columnname text, rowctid text)
AS $$
begin