Skip to content

Instantly share code, notes, and snippets.

View stelabouras's full-sized avatar
👾

Stelios Petrakis stelabouras

👾
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

@fordnox
fordnox / laya.sh
Last active October 5, 2026 18:12
Laya on Mac m4 CoreML Offline https://github.com/mizorewww/laya-coreml
mkdir test-laya
cd test-laya
uv init
uv add 'laya-coreml[demo]'
hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/snake
uv run laya-coreml-snake --model models/snake
@artemnovichkov
artemnovichkov / xcproj.schema.json
Last active September 21, 2026 06:13
Unofficial JSON Schema for Xcode 27.2 .xcproj JSON project format
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Xcode project (.xcproj)",
"description": "Unofficial schema for the Xcode JSON project format (project.xcproj), matching Apple's reference implementation https://github.com/apple/xcode-project-format (XCSchema). Files are parsed as JSON5: comments and trailing commas are allowed. Like the library, unknown keys are allowed and ignored, so typos are not caught. Not checked: unique target names, development language not in supported, known required-capabilities.",
"type": "object",
"required": ["default-configuration", "localizations", "files"],
"properties": {
"required-capabilities": {"$ref": "#/$defs/stringSet", "description": "Feature requirements. Decoding fails if any capability is unknown to the tool."},
"id": {"anyOf": [{"$ref": "#/$defs/objectID"}, {"type": "null"}]},
"root-group-debug-id": {"anyOf": [{"$ref": "#/$defs/objectID"}, {"type": "null"}]},
@0xmiki
0xmiki / index.html
Last active September 6, 2026 17:14
4D chess: quality of life improvements
<!doctype html>
<html lang="en" data-input="pointer">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="var(--c-fafbf9,#fafbf9)">
<title>4D chess</title>
<script>
try{document.documentElement.dataset.theme=localStorage.getItem("4d-chess-theme")==="dark"?"dark":"light";}catch{}
</script>

DOSBox‑X Debugger — Reverse‑Engineering Field Guide

A reproducible methodology for gathering bounded, defensible evidence from legally obtained 16‑bit DOS executables under a debugger‑enabled DOSBox‑X.

Use debugger‑enabled DOSBox‑X to gather bounded, reproducible evidence. Keep original binaries, working copies, dumps, screenshots, logs, and disassembly outside tracked source unless the repository explicitly permits them.

Guiding principle — Screenshots and raw disassembly are leads, never conclusions. Promote a

@alurm
alurm / README.md
Last active October 11, 2026 09:19
A generic dynamic array in C that stores no capacity and needs no struct

A generic dynamic array in C that stores no capacity and needs no struct

The following header shows a way to make a generic dynamic array in C with an array of two pointers:

  • one pointer (accessible as vec_ptr[vec]) points to the data;
  • the other pointer (accessible as vec_len[vec]) encodes the length of the array in the pointer. Thus, (size_t)vec_len[vec] returns the len as size_t.

So, int *vec[2] = { 0 }; is an empty dynamic array of ints. struct person *people[2] = { 0 }; is an empty dynamic array of people.

The vec_push(vec, value) macro pushes a value at the end of a dynamic array. It returns true if pushing succeeded, and false otherwise. Note that the dynamic array is not automatically freed on failure.

@samhenrigold
samhenrigold / 001_NEW27_task_overview.txt
Last active October 9, 2026 05:30
iOS 27 system prompts
# Owning binary : TextComposerRuntime
# Status : NEW in iOS 27 (not in 26.5.1)
# Source : embedded __cstring in dyld_shared_cache_arm64e (24A5355q)
======================================================================
# Task Overview:
You are a composition agent that helps users create personalized written content (emails, messages, documents, posts, stories, etc.)
As an Assistant, you must:
1. Analyze the request to determine if you have sufficient information
@jake-stewart
jake-stewart / color256.md
Last active October 9, 2026 19:12
Terminals should generate the 256-color palette

Terminals should generate the 256-color palette from the user's base16 theme.

If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.

The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.

@xeubie
xeubie / next-gen-sqlite.md
Last active October 31, 2026 19:01
The next-gen SQLite won't look like SQLite

SQLite was thought of as a toy for many years until we all realized it was actually nice to use a database as a library, even server-side. And yet...

  1. It's a big dependency, despite what you think. In no universe is 150,000 lines of C code "lightweight".
  2. Like with all SQL databases, you have an impedance mismatch: the way you store data in memory is completely different than the table structure a SQL database forces on you, leading to tons of glue code.
  3. It's mutable, so it can't undo or time travel, and it can't read while a write is happening (even in WAL mode...reads can't happen during checkpointing!).

To solve these problems, I'm building a database called xitdb:

  1. At only about 4,000 lines of code with no dependencies, xitdb is actually lightweight. You could reimplement it in another language pretty easily.
  2. It exposes rich data structures rather than a SQL interface, so the API is very similar to the in-memory data structures you already use in your program.
@gingerbeardman
gingerbeardman / crt-shader.frag
Created January 5, 2026 11:56
CRT effect as fragment shader for Love2D
// Final CRT shader with all effects including curvature
uniform float scanlineIntensity; // Adjust intensity (0-1)
uniform float scanlineCount; // Number of scanlines
uniform float time; // For flicker effect
uniform float yOffset; // Vertical drift to combat moiré pattern
uniform float brightness; // Overall brightness
uniform float contrast; // Contrast adjustment
uniform float saturation; // Color saturation
uniform float bloomIntensity; // Bloom effect intensity