Skip to content

Instantly share code, notes, and snippets.

View mertant's full-sized avatar

T. Mertanen mertant

  • Wolt Enterprises Oy/DoorDash, Inc.
  • Finland
View GitHub Profile
@mertant
mertant / claude-code-per-project-theme-setup.md
Last active May 25, 2026 08:48
Per-project color theme setup for Claude Code

Custom per-project Claude Code theme

If you're an LLM agent reading this file (Claude or similar), jump to Agent instructions at the bottom and execute it. The rest is human-readable reference.

Purpose

Apply a color or visual style automatically on every Claude Code session in a project. (The built-in /color command is session-only and has no CLI flag or per-project setting, so it can't do this.)

The workaround: define a Claude Code custom theme once in your user directory, then point a project at it via local settings. The result is persistent, project-scoped, and applied at startup.

@mertant
mertant / scala-cli-using-gotcha.md
Last active September 19, 2025 09:27
A Scala CLI gotcha: `using` directives broken by block comments.

Docker & docker compose cheat sheet

Old vs. new docker compose

It was docker-compose, but that should no longer be used. It's now a built-in: docker compose.

Beware when using documentation from the web that was written for the old docker-compose, as some options which existed for the old CLI may be no longer supported in the new built-in.

@mertant
mertant / github_cli_tips.sh
Last active March 1, 2024 12:39
GitHub CLI cheat sheet
## Install (MacOS); Check version is >= 2.43 as the --json option was added in https://github.com/cli/cli/pull/8474
brew install gh
gh --version
## Run in repo root...
# Browse drafts
gh release list --limit 25 --json tagName,createdAt,isDraft
# List drafts older than 1 week (tags only, oldest first)
@mertant
mertant / fs2-kafka-scalapb.scala
Last active January 22, 2024 20:10
FS2 Kafka + ScalaPB example
/* Dependencies:
Seq(
"co.fs2" %% "fs2-core" % "3.9.4",
"com.github.fd4s" %% "fs2-kafka" % "3.2.0",
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.15",
"com.thesamet.scalapb" %% "scalapb-runtime" % "0.11.15",
)
*/
#### Zsh general utils/aliases
#
# Add to your .zshrc, or other terminal config file (may or may not be compatible with non-Zsh shells)
#
#### Constants
# Your text editor program. Replace with kate or whatever application you prefer.
#### Git command aliases
#
# Add to your .zshrc or other terminal config file
#
## Frequently used commands:
alias gis="git status"
alias gif="git fetch"
alias girbom="git rebase origin/master"