Skip to content

Instantly share code, notes, and snippets.

@kaushikgopal
kaushikgopal / statusline-settings.json
Last active February 5, 2026 03:00
My Claude Code statusline config
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}
@kaushikgopal
kaushikgopal / alt-check-box.css
Created February 4, 2026 17:33
Obsidian alternate checkbox icons CSS snippet
/* ****************************
Alternate checkbox display
courtesy: https://forum.obsidian.md/t/alternative-checkboxes-icon-bullets-copy-and-paste/35962/15
*/
/* Checkbox important ! */
input[data-task="!"]:checked::after,
li[data-task="!"]>input:checked::after,
li[data-task="!"]>p>input:checked::after {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM64 480c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z'/%3E%3C/svg%3E");
@kaushikgopal
kaushikgopal / .tmux.conf
Created February 4, 2026 17:33
tmux configuration
# Kaush's tmux configuration
# https://kau.sh
# switch prefix key from Ctrl B → Ctrl A
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set-window-option -g mode-keys vi
@kaushikgopal
kaushikgopal / tmux-subagent
Created February 4, 2026 17:33
tmux subagent spawner for CLI agents
#!/usr/bin/env bash
#
# This is a lightweight, agent-agnostic workflow for spawning parallel
# worker agents from any CLI agent (codex, claude, gemini-cli) running in tmux.
#
# Usage:
# tmux-subagent prompt-spawn PANE CWD AGENT
# tmux-subagent spawn --master-pane PANE --cwd DIR --agent AGENT --task TASK
#
# Environment:
@kaushikgopal
kaushikgopal / initialize.md
Created February 4, 2026 17:33
AI coding agent initialization command

Please analyze this codebase and create an AGENTS.md file, which will be given to future instances of this AI coding agent (like Claude Code, Codex or Gemini Cli) a simple set of rules to operate in this project.

What to add:

  1. Commands that will be commonly used, such as how to build, lint, and run tests. Include the necessary commands to develop in this codebase, such as how to run a single test.
  2. High-level code architecture and structure so that future instances can be productive more quickly. Focus on the "big picture" architecture that requires reading multiple files to understand

Usage notes:

  • If there's already an AGENTS.md, suggest improvements to it vs creating a new file.
@kaushikgopal
kaushikgopal / Samplers.kt
Created June 20, 2025 23:19
Samplers in Kotlin
/**
* runs a block at most [rate] times per [period]
*
* Examples:
* - [rate=30 period=1s]: run max 30 times within period of 1 second (30fps)
* - [rate=10 period=1mt]: run max 10 times within period of 1 minuts (10 updates per minute)
*
* @param rate Maximum number of executions per period
* @param period Time duration for the rate limit
* @param timeSource Source for time measurements (default: monotonic system time)
@kaushikgopal
kaushikgopal / US Plain Keyboard.keylayout
Created February 4, 2024 23:27
US Plain custom keyboard
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<keyboard group="0" id="5000" name="US Plain" maxout="1">
<layouts>
<layout first="0" last="0" modifiers="48" mapSet="312" />
</layouts>
<modifierMap id="48" defaultIndex="0">
<keyMapSelect mapIndex="0">
<modifier keys="" />
</keyMapSelect>
@kaushikgopal
kaushikgopal / awk0.sh
Last active September 9, 2022 00:30
awk explainer example
# General pattern
#
# awk '
# BEGIN { a1; a2; a3; }
# <pattern> { a1; a2; a3; }
# END { a4; a6; }
# ' <filename>
# space - default file separator
# $0 - entire line
@kaushikgopal
kaushikgopal / Fleet.terminal
Created December 3, 2021 23:22
A Terminal theme inspired by the new Jetbrains Editor Fleet https://www.jetbrains.com/fleet/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xNzY0NzA1ODgyIDAuMTk2MDc4NDMx
NCAwLjI1NDkwMTk2MDgAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@kaushikgopal
kaushikgopal / nord.theme
Created October 28, 2021 16:36
Taskwarrior Theme that plays nicely with Nord
# Originally adapted from https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/themes.html
# task-color(5)
# taskrc(5)
# rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.