Skip to content

Instantly share code, notes, and snippets.

View Frisch12's full-sized avatar

Dennis Fricke Frisch12

View GitHub Profile
@Frisch12
Frisch12 / patch-claude-thinking_2.1.101.sh
Last active April 14, 2026 21:44
Patch adaptive thinking of Claude Code CLI
#!/usr/bin/env bash
# patch-claude-thinking.sh
#
# Patches Claude Code CLI to replace adaptive thinking with fixed-budget
# enabled thinking on ALL code paths.
#
# Main path: forces the else-branch which uses the model's default budget
# with Math.min(max_tokens-1, budget) safety check.
#
# Subagent paths: uses a conservative fixed budget (default 10000) that
@Frisch12
Frisch12 / README.md
Created April 2, 2026 17:57
Claude Code Buddy Generator / Patcher

Claude Code Companion Patcher

Patch the Claude Code binary to get a custom companion (species, rarity, stats).

TL;DR

# Find a salt (default: Legendary Shiny Dragon)
bun ~/.claude/scripts/find-perfect-salt-bun.mjs
@Frisch12
Frisch12 / claude-json-reference.md
Created April 2, 2026 17:40
.claude.json Reference

~/.claude.json — Complete Field Reference

The file ~/.claude.json (or ~/.claude-<oauth-suffix>.json) is the central persistent configuration file for Claude Code (internal codename: Tengu). It is read on every startup and written whenever state changes.

Important: Most fields are internal state, not user configuration. User-facing settings such as model, permissions, and hooks belong in ~/.claude/settings.json.

Source file: src/utils/config.ts — types GlobalConfig and ProjectConfig.


@Frisch12
Frisch12 / Program.cs
Created December 8, 2020 09:43
AuthorizationHandler becomes no Endpoint resource
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Security.Claims;
using System.Text;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
@Frisch12
Frisch12 / !REACT_WEB_TEMPLATE.md
Last active July 9, 2019 07:06
React webpack template

React webpack template

#!/bin/bash
if [ -z ${2+x} ]; then
day=$(date +%d)
day=$(echo $day | sed 's/^0*//')
else
day=$2
if [ "$day" = "all" ]; then
today=$(date +%d)
for i in $(seq $today); do
$0 $1 $i
@Frisch12
Frisch12 / CaH-BBG.csv
Created November 28, 2016 20:25
Cards against Humanity
QorA Value Keep Draw Pick Source
Question \34\Watson!\34\ Holmes exclaimed, \34\This man was obviously killed by _____!\34\ Yes BBG Suggestions
Question _____ ain't nothin' to fuck with. Yes BBG Suggestions
Question _____ gives a whole new meaning to _____. Yes 1 2 BBG Suggestions
Question _____ good to the last drop. Yes BBG Suggestions
Question _____ in the front seat; _____ in the back seat; gotta make my mind up, which seat do I take? Yes 1 2 BBG Suggestions
Question _____ in the morning, sailors take warning. Yes BBG Suggestions
Question _____ is a classic case of _____. Yes 1 2 BBG Suggestions
Question _____ is a gateway to _____. Yes 1 2 BBG Suggestions
Question _____ is a time-saving godsend for busy housewives. Yes BBG Suggestions
@Frisch12
Frisch12 / LibraryReflectionUtil.java
Created April 25, 2016 16:09
Reflection util for IntelliJ plugins to reflect over project libraries
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.libraries.LibraryUtil;
import com.intellij.util.containers.WeakHashMap;
import java.lang.annotation.Annotation;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
import java.util.List;
@Frisch12
Frisch12 / GoogleMusicDownloader.py
Created July 17, 2015 14:09
Google Music All Access Downloader
# -*- coding: utf-8 -*-
import argparse
import time
import urllib2
import os
from PIL import Image
import shutil
from gmusicapi import Mobileclient, Webclient, CallFailure
from mutagen.id3._frames import *