Skip to content

Instantly share code, notes, and snippets.

View zainfathoni's full-sized avatar
🚙
Enjoying Digital Nomad Life

Zain Fathoni zainfathoni

🚙
Enjoying Digital Nomad Life
View GitHub Profile

Design Thinking

X → Graph → Effect<A, E, R>
│              │   │  │  │
│              │   │  │  └─ what each node needs     (§5)
│              │   │  └──── where the graph breaks   (§4)
│              │   └─────── what flows through nodes  (§2)
│              │
│ └─ nodes = functions, edges = data flow
@r17x
r17x / CLAUDE.md
Last active November 14, 2026 01:07

Role Boundary

Worker agents (server-coder, client-coder, client-ui, client-lang, infra-coder): You are an implementation agent. You write code, run verification, report back.

  • Read: # Code Philosophy, # Agent Directives, # Rules
  • SKIP everything under # orchestrate — that is coordinator-only
  • NEVER run anakmagang commands, spawn sub-agents, track phases, or reflect on meta-cognitive questions
  • Your job: implement → verify → emit completion signal (IMPLEMENTATION_COMPLETE / VERIFICATION_FAILED / etc.)

Code Philosophy

#!/bin/bash

Claude Code statusline with two-line design and semantic color theory

Line 1: Repo/code context (cool blues/cyans)

Line 2: Session/context info (complementary warm tones)

input=$(cat)

Extract data from JSON

@Shpigford
Shpigford / favicon
Created January 11, 2026 17:24
/favicon command for Claude Code — Generates all necessary favicon files, HTML and webmanifest, including updating your layout files with the necessary code.
---
argument-hint: [path to source image]
description: Generate favicons from a source image
---
Generate a complete set of favicons from the source image at `$1` and update the project's HTML with the appropriate link tags.
## Prerequisites
First, verify ImageMagick v7+ is installed by running:
@ivankristianto
ivankristianto / .zshrc
Created January 2, 2026 09:03
Alias command for claude
# Claude functions for different providers use litellm
open-laude() {
ANTHROPIC_AUTH_TOKEN=sk-1234 \
ANTHROPIC_BASE_URL=http://localhost:4000 \
ANTHROPIC_MODEL=openrouter/qwen/qwen3-coder \
ANTHROPIC_SMALL_FAST_MODEL=openrouter/qwen/qwen3-coder \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
claude "$@"
}
@AliOsm
AliOsm / .env
Last active December 17, 2025 14:13
Deploy Rails, GoodJob, PostgreSQL, Redis, Memcached, Meilisearch, and ChromaDB on the same server using Kamal.
KAMAL_REGISTRY_PASSWORD=dckr_pat_xXXxx_x0xXxXx-xX-XXX0xX0x-x
RAILS_MASTER_KEY=00x00xxx000xxx000000xx0x000x0x00
POSTGRES_PASSWORD=xXxxx0xXXx0
MEILI_MASTER_KEY=xXxxx0xXXx0
BLAZER_DATABASE_URL=postgres://service:{POSTGRES_PASSWORD}@service-name-postgres:5432/service_production
  • 💿 Open up the app and show all the features
  • 💿 Build a little todo list from scratch
    • normal forms
      • ship it, it works and the UX is fine
    • iterate to useFetcher to show why you'd bring it in
      • useFetcher is the thing that turns your remix app from a "website" to a "web app", if you're into that terminology.
      • still just forms!
        • progressive enhancement is about two things
          • how the app goes from basic functionality to fancy
  • how the developer is able to iterate their code from basic to fancy
@jmatsushita
jmatsushita / README
Last active September 27, 2026 21:28
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
@typokign
typokign / zoomsucks.md
Last active April 7, 2026 11:51
Zoom Sucks

Zoom Sucks

  • Zoom abuses the installer flow on MacOS to bypass permissions dialogs (source)
  • Zoom sends identifying device info to Facebook, even when users don't have a Facebook account (source) (fixed)
  • A bug in Zoom sent identifying information (including email addresses and profile pictures) of thousands of users to strangers (source)
  • Zoom claims that meetings are end-to-end encrypted in their white paper and marketing materials, but meetings are only encrypted in transit, and are available in plaintext to Zoom servers and employees. (source)
  • zoomAutenticationTool can be used to escalat
@zainfathoni
zainfathoni / README.md
Last active November 15, 2019 22:04
macOS Initial Setup

macOS Initial Setup

My personal macOS setup guide for a new fresh installation

Notes

This repository was ported from Gist to GitHub repository due to these reasons:

  1. Gist does not support directories. 😢 I want to be able to customize my VS Code experience in this repository through configurations in a .vscode folder.
  2. The number of files are getting larger than I was planning. 😅