Skip to content

Instantly share code, notes, and snippets.

@spali
spali / CLAUDE.md
Last active October 18, 2026 10:36 — forked from hqman/CLAUDE.md
Boris Cherny’s CLAUDE.md

Workflow Orchestration

1. Plan Mode Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately - don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spali
spali / 10-wancarp
Last active September 5, 2026 21:01
Disable WAN Interface on CARP Backup
#!/usr/local/bin/php
<?php
require_once("config.inc");
require_once("interfaces.inc");
require_once("util.inc");
$subsystem = !empty($argv[1]) ? $argv[1] : '';
$type = !empty($argv[2]) ? $argv[2] : '';
@spali
spali / DynamicComponent.ts
Created December 6, 2016 11:59
Dynamic Module with dynamic Component in Angular 2
import { Component, OnInit, ViewContainerRef, ComponentRef, Compiler, NgModule, OnDestroy } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'dynamic-container',
templateUrl: 'static.component.html'
})
export class DynamicContainerComponent implements OnInit, OnDestroy {
protected componentRef: ComponentRef<any>;