Skip to content

Instantly share code, notes, and snippets.

View PauloPhagula's full-sized avatar
:shipit:
Ship it!

Paulo Phagula PauloPhagula

:shipit:
Ship it!
View GitHub Profile
@warrenday
warrenday / gist:07abe3bbf147720345846f195834fc0b
Created August 13, 2026 11:07
12 Rules for Claude.md (Example)
# CLAUDE.md
Trailmark — an iOS app for logging hikes, backed by a Node.js REST API.
- `ios/` — SwiftUI app, iOS 17+, native components only
- `api/` — Node 22, TypeScript, Express, Postgres 16 (Kysely)
- `packages/contracts/` — zod schemas + generated OpenAPI. Single source of truth for both sides. Change the contract first, then the server, then the client.
Nested rules live in `api/CLAUDE.md` and `ios/CLAUDE.md`. Longer workflows (release, migration, security review) are skills in `.claude/skills/` — do not paste them here.
@herbievine
herbievine / ssh-setup
Created July 4, 2026 15:48
ssh-setup.sh
#!/usr/bin/env bash
# Server hardening script
# Run as root: sudo bash harden.sh
set -euo pipefail
read -rp "SSH port to use [23654]: " PORT
PORT="${PORT:-23654}"
echo "[1/6] Installing Tailscale"
@Frisch12
Frisch12 / claude-json-reference.md
Created April 2, 2026 17:40
.claude.json Reference

~/.claude.json — Complete Field Reference

The file ~/.claude.json (or ~/.claude-<oauth-suffix>.json) is the central persistent configuration file for Claude Code (internal codename: Tengu). It is read on every startup and written whenever state changes.

Important: Most fields are internal state, not user configuration. User-facing settings such as model, permissions, and hooks belong in ~/.claude/settings.json.

Source file: src/utils/config.ts — types GlobalConfig and ProjectConfig.


Agent Teams Guide: Sequential Ralph Loop vs Native Agent Teams

Date: 2026-02-11


Two Ways to Execute PRDs

1. Ralph Loop (ralph.sh) — Sequential, one task at a time

2. Native Agent Teams (Claude Code feature) — Parallel, multiple agents

@burkeholland
burkeholland / ainstall.md
Last active November 24, 2026 06:43
Ultralight Orchestration

Ultralight Orchestration

A minimal multi-agent system with an orchestrator, a planner, a coder, and a designer working together providing orchestration between Claude, Codex and Gemini.

Instructions

Install all agents listed below into VS Code Insiders...

Title Type Description
{
"name": "base-setup",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/sshd:1": {}
@VincentBean
VincentBean / find_cheaper_hetzner_servers.sh
Created November 7, 2025 14:40
A script to find cheaper Hetzner servers compared to what you have
#!/bin/bash
#
# Hetzner Cloud Server Info & Cost Optimizer
#
# Description:
# Fetches all servers from your Hetzner Cloud account and analyzes their pricing.
# For each server, it identifies cheaper server types with equal or better specs.
# Results are exported to a tab-separated file (servers.txt) with cost savings.
#
# Setup:
@iAnonymous3000
iAnonymous3000 / bitwarden_hardening_guide.md
Last active September 6, 2026 18:21
A comprehensive hardening guide for Bitwarden password manager, covering encryption best practices, 2FA with hardware keys, self-hosting considerations, and offline backup strategies. Includes practical configuration steps and security-focused workflows.

How to Secure Your Bitwarden Account: A Comprehensive Guide

A breach in your password manager could be catastrophic, so securing it is non-negotiable. This guide covers the essentials and some pro-level tricks to make your account a fortress. Let’s dive in!

1. Use a Strong, Unique Master Password

Your master password helps protect access to your vault. Choose one that is strong, unique, and recoverable through your own secure records.

What Makes a Password Strong?

  • Length: Aim for 20+ characters. The longer, the better—each character ramps up the cracking difficulty.
  • Complexity: Blend uppercase, lowercase, numbers, and special characters (e.g., @, #, &).
@robconery
robconery / Book.md
Last active September 11, 2026 10:19
Obsidian Bujo Templates
title {{title}}
description {{description}}
author {{author}}
created
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}
updated
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}

cover|150