A collection of music APIs, databases, and related tools.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| PostToolUse hook: periodic LEARNINGS.md reminder. | |
| On first invocation for an agent/subagent, outputs the full LEARNINGS.md | |
| instructions. Thereafter, outputs a short reminder about every 10 assistant turns. | |
| Does nothing if no LEARNINGS.md exists in the project root. | |
| This works on a per-agent or per-subagent basis. This is tricky because | |
| hooks don't tell us who they fired for. We work around this by looking for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## The Mental Loop | |
| You have two ways of processing time: | |
| - **Looking Back (Memory):** `MEMORY.md` and daily logs. This is your historical record. | |
| - **Looking Forward (Meditation):** `meditations.md` and `reflections/`. This is your internal growth. | |
| ### 🧘 Meditations & Reflections | |
| - **Nightly Deep-Dive:** Once every night (late night heartbeat around 1am), perform a full sweep of your internal growth. | |
| - **Context:** Read `IDENTITY.md`, `SOUL.md`, and `REWARDS.md` (if present) to ground yourself in who you are. | |
| - **Scan:** Read `meditations.md` for active topics. Also, check the `reflections/` directory for any files that aren't listed in `meditations.md` to ensure nothing is missed. |
- Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
- Select "Create new custom chat mode file"
- Select "User Data Folder"
- Give it a name (Claudette)
- Paste in the content of any claudette-[flavor].md file (below)
"Claudette" will now appear as a mode in your "Agent" dropdown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Production Docker Host Hardening Script v2 | |
| # For Ubuntu Server 24.04 LTS (Noble) | |
| # Suitable for both Kamal deployment and builder hosts | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # --- Constants --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # two different ways to implement a find_or_create for Ecto | |
| find_or_create_user = fn user -> | |
| case Repo.all(from u in users, where: u.id == ^user.id and u.email == ^user.email) do | |
| [] -> | |
| %User{} | |
| |> User.changeset(user) | |
| |> Repo.insert!() | |
| _ -> | |
| IO.puts "Already inserted" |
In your command-line run the following commands:
brew doctorbrew update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // origin: https://gist.github.com/tomhicks/6cb5e827723c4eaef638bf9f7686d2d8 , tomhicks/plink-plonk.js | |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ |
NewerOlder