Skip to content

Instantly share code, notes, and snippets.

@aguerlain-lr
aguerlain-lr / headroom-setup.md
Last active July 6, 2026 00:48
Headroom + Claude Code: Local Optimization Proxy Setup

Cut your Claude Code bill 20-50% in 5 minutes

A working setup guide for headroom-ai: a local optimization proxy that compresses, caches, and streamlines every Claude API call before it leaves your machine. Zero changes to Claude Code itself.

This guide is headroom-specific. A similar setup exists with rtk-ai (different philosophy, overlapping outcomes). Both install cleanly via uv tool install. Pick either — the wiring is the same shape.


Real numbers, real session

@fakezeta
fakezeta / qwen3.6_merged_template.jinja
Last active July 6, 2026 00:45
Merged Qwen Multimodal Chat Template from allanchan339 and froggeric
{# =========================
Merged Qwen Multimodal Chat Template from
- https://github.com/allanchan339/vLLM-Qwen3-3.5-3.6-chat-template-fix
- https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates
Features:
- developer role supported (from froggeric)
- <|think_on|> / <|think_off|> toggles (from froggeric)
- Historical reasoning HIDDEN by default (from allanchan339)
- String-form tool arguments parsed as JSON (from allanchan339)
- Non-ASCII escaped in tools/args JSON (from froggeric)
@alatalo
alatalo / !pve deb13 cloudimage.md
Last active July 6, 2026 00:37
Proxmox Debian 13 cloud-init ready VM template

Proxmox Debian 13 cloud-init ready VM template

Proxmox VE shell commands to create Debian 13 cloud-init ready VM template and deploy a VM with the template and cloud-init settings.

  • Tested on Proxmox VE 8.4.14 and 9.0.11
  • Run the commands on the Proxmox VE host as root
  • Note: Not a shell script ready to be run, just a list of commands

Ville Alatalo 2025 https://github.com/alatalo

@Thinkscape
Thinkscape / fix-claude-sessions.py
Created February 25, 2026 23:12
Fix Claude Code session JSONL files affected by the whitespace-only text block bug.
#!/usr/bin/env python3
"""
Fix Claude Code session JSONL files affected by the whitespace-only text block bug.
https://github.com/anthropics/claude-code/issues/23142
When a streaming response is interrupted before real content is emitted, Claude Code
may freeze a whitespace-only text block (e.g. "\n\n" or "") into the conversation
history. The API then rejects all subsequent requests with:
400 "messages: text content blocks must contain non-whitespace text"
@pesterhazy
pesterhazy / building-sync-systems.md
Last active July 6, 2026 00:02
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active July 5, 2026 23:47 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@k16shikano
k16shikano / SKILL.md
Last active July 5, 2026 22:44
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)