Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
@thimslugga
thimslugga / claude-code-config.md
Last active April 20, 2026 14:37
Claude Code Configuration

Claude Code Configuration

Overview

  1. .claude/ at the project root (per-repo, team config)
  2. ~/.claude/ in your home directory (global, personal config)

There is also a separate file ~/.claude.json (not a directory) that Claude Code writes to for app state and OAuth tokens. Think of it like .git/ vs .gitconfig: one is a per-project directory, one is global.

Note: There is no .claude-code directory, Claude Code uses .claude/.

@thimslugga
thimslugga / add_vim_to_path.ps1
Created April 15, 2026 17:48 — forked from eggbean/add_vim_to_path.ps1
PowerShell script to make a persistent symlink to Vim for Windows and add it to $PATH
# Jason Gomez - June 2024
# Problem 1: When installing Vim for Windows using winget it's not added
# to $PATH so it cannot easily be used from the command line.
# Problem 2: The path to the Vim executables keeps changing as the
# version number is part of the path.
# Solution: This script makes a persistent symlink to the latest installed
# version of Vim for Windows and adds it to $PATH. Re-run the
# script when a new version of Vim is installed.
# Get all Vim directories and sort them by version number
@thimslugga
thimslugga / linux_setup.md
Created April 13, 2026 15:49 — forked from gbingersoll/linux_setup.md
Linux Setup
@thimslugga
thimslugga / BootstrapUtils.psm1
Created April 13, 2026 15:47 — forked from jacobbrugh/BootstrapUtils.psm1
@jacobpbrugh's dotfiles bootstrap script
#Requires -Version 5.1
<#
.SYNOPSIS
BootstrapUtils - Reusable PowerShell utilities for Windows bootstrap and configuration
.DESCRIPTION
This module provides common utilities for:
- Logging with consistent formatting
- Admin privilege management
- Scoop package manager operations
@thimslugga
thimslugga / macos_bootstrap.sh
Created April 13, 2026 15:47 — forked from fuzzbuster/macos_bootstrap.sh
bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
#!/usr/bin/env bash
#
# bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
# 包含:Ghostty + zellij + yazi + lazygit + fastfetch + Neovim/LazyVim + 現代工具 + oh-my-zsh
# 語言環境:Python(uv/pipx)、Go、Rust(rustup)、Java(Liberica 20 Full+JavaFX)、Node(pnpm+bun)、Ruby
#
# 用法:curl -fsSL https://gist.githubusercontent.com/fuzzbuster/a117689823ba87c27437a44129253dcb/raw/1b2e930ad152a7ceb9fbb7df581b304e2d1685a0/macos_bootstrap.sh | bash
# 或 bash bootstrap.sh
#
# 可重複執行,不會重複安裝或破壞既有配置
#!/usr/bin/env bash
##
# Bootstrap
##
# export HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications"
# XCode Select
sudo xcode-select --install
@thimslugga
thimslugga / claude-code-cheatsheet.md
Created April 12, 2026 17:46 — forked from petryca/claude-code-cheatsheet.md
Capstone Project — Claude Code Cheatsheet

Claude Code Cheatsheet

Quick reference for the QuizBlitz capstone project — Claude Code CLI & Desktop, Figma integration, project configuration, and vibe coding — April 2026


1. Connecting Figma with Claude Code

Setup (CLI)

@thimslugga
thimslugga / bsp-split-standalone.sh
Created April 11, 2026 12:23 — forked from johnlindquist/bsp-split-standalone.sh
WezTerm + Claude Code: Multi-Session Workflows with BSP Layouts
#!/bin/bash
# BSP Split: Find largest pane IN CURRENT TAB and bisect it
# Get current pane from environment (set by WezTerm for shells running in panes)
if [ -n "$WEZTERM_PANE" ]; then
CURRENT_PANE="$WEZTERM_PANE"
else
# Fallback: use the pane passed as argument
CURRENT_PANE="$1"
fi
@thimslugga
thimslugga / justfile
Last active April 7, 2026 10:32
Just files
#!/usr/bin/env -S just --justfile
# Enable .env file support for local configuration
set dotenv-load
# Use bash with strict error checking
set shell := ["bash", "-uc"]
# this setting will allow passing arguments through to tasks, see the docs here
# https://just.systems/man/en/chapter_24.html#positional-arguments
#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#