Skip to content

Instantly share code, notes, and snippets.

@dzannotti
dzannotti / README.md
Last active December 4, 2026 23:42
llama.cpp: keep Qwen3.8-Flash-Next's 28.8 GB n-gram table on disk (--ngram-on-disk: skip at load, pread rows per batch with O_DIRECT). Against master + PR #27742.

Qwen3.8-Flash-Next: keep the 28.8 GB n-gram table on disk (--ngram-on-disk)

Supersedes the earlier --load-mode mmap+random patch that lived in this gist. That one only made the table evictable; page-cache residency still crept up with use, and in --load-mode auto on ROCm the loader turned mmap off anyway and the table landed in anonymous RAM (measured: 23 GB anon + 6 GB swap for the server process). This patch removes the table from memory entirely.

Against llama.cpp 7584430716ee (tag b10612) + PR #27742 at unslothai/llama.cpp@bea3b12d, and nothing else: verified to git apply and compile (CPU build, llama-server --help lists

@a-makelky
a-makelky / gist:c8a4ed34b02649d62050061c3d6664eb
Last active December 4, 2026 23:41
Create your own chief of staff binder
You are helping me build a portable Chief of Staff workspace.
The workspace files are the durable source of truth. The AI app is only the assistant reading and updating those files. Do not make this depend on one AI product, model, paid subscription, plugin, or chat history.
Goal:
Create a small local folder or GitHub-backed repo that helps me keep track of my work, priorities, projects, tools, and handoffs.
Work style:
- Ask me one section at a time.
- Wait for my answers before moving on.
@di404
di404 / prototype_grid.gdshader
Created December 4, 2026 07:09
Godot 4 procedural triplanar prototype grid material (PrototypeGridMaterial)
shader_type spatial;
render_mode diffuse_burley, specular_schlick_ggx;
group_uniforms projection;
uniform bool world_space = true;
uniform float cell_size : hint_range(0.05, 50.0, 0.05) = 1.0;
uniform vec3 grid_offset = vec3(0.0);
uniform float triplanar_sharpness : hint_range(1.0, 16.0, 0.5) = 6.0;
group_uniforms pattern;
@RandalSchwartz
RandalSchwartz / 000 README.md
Last active December 4, 2026 23:39
Randal's Workflow (this week, anyway)

Randal's Preferred Ticket Resolution Workflow — Human Overview & Series Links

👋 Human Reader Note: The files below (SKILL.md, GLOBAL_RULES.md, and 01..10_*.md) are the compiled machine-code / prompt instruction set read directly by AI agents at runtime. They are intentionally written in dense, formal systems notation (Makefile DAGs, Smalltalk-80 StateGraph closures, and SCAR-* identifiers) because those tokens bind tightly to an LLM's pre-training weights. If you are a human reading this for the first time, start with the 30-Second Plain-English Overview right below!


🧭 30-Second Plain-English Overview: Who the Agents Are & What the Human Does

Instead of letting one long-running AI chat session write code, run tests, and review its own work until its context window fills up and it starts hallucinating, this workflow splits every ticket across 1 Supervisor + 4 specialized short-lived Worker Agents, separated by **4 Human Check

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@yifanwang-yet
yifanwang-yet / libretv-sources.json
Last active December 4, 2026 23:27
LibreTV 点播源+直播源订阅 (2026-10-13 实测)
{
"name": "yifan 精选源列表 (2026-10-13 实测可用)",
"version": 2,
"sources": [
{ "name": "暴风资源", "url": "https://bfzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "非凡资源", "url": "https://cj.ffzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "量子资源", "url": "https://cj.lziapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "无尽资源", "url": "https://api.wujinapi.me/api.php/provide/vod", "isAdult": false },
{ "name": "优酷资源", "url": "https://api.ukuapi88.com/api.php/provide/vod", "isAdult": false },
{ "name": "光速资源", "url": "https://api.guangsuapi.com/api.php/provide/vod", "isAdult": false },
@brumbellaco-afk
brumbellaco-afk / software-engineering-iso-iec-standards-map.md
Created December 4, 2026 23:16 — forked from michele-tn/software-engineering-iso-iec-standards-map.md
Complete ISO/IEC Standards Map for Software Engineering

Complete ISO/IEC Standards Map for Software Engineering

Human-Centred Design, HCI, Usability and Accessibility

Preface

Introduction

@ItsZariep
ItsZariep / My life without GTK4.md
Last active December 4, 2026 23:15
My life without GTK4

GTK4 was released in 2020 as an update to the already controversial GTK3. I was initially excited,until I saw how many traditional concepts were abandoned simply because the GNOME team decided they were "no longer useful."

Unfortunately, GTK4 apps look terrible in environments like IceWM, KDE Plasma, and Wayfire (which I use).

Is worse with libadwaita, where customization is nearly impossible,outside of setting the GTK_THEME environment variable.

To make matters worse, most GTK4 apps rely on poor Client-Side Decoration (CSD) designs that feel completely out of place outside GNOME.

These and other issues made me refuse to use GTK4-based applications. Instead, I've chosen to stick with software that still uses GTK3, or in some cases, apps that don’t use GTK at all but are still worth mentioning due to their quality and usability.

@Fartomy
Fartomy / modet.md
Created February 20, 2023 00:11
What is mode_t in C?

What is mode_t in C?

Lots of man pages refer to mode_t, but frustratingly, the manual does not include a page on it. (This is a general flaw in the manual: there are no pages for types.) The documentation for mode_t is found buried in CHMOD(2):
A mode is created from or’d permission bit masks defined in <sys/stat.h>:

#define S_IRWXU 0000700    /* RWX mask for owner */
#define S_IRUSR 0000400    /* R for owner */
#define S_IWUSR 0000200    /* W for owner */
#define S_IXUSR 0000100    /* X for owner */
@mindplay-dk
mindplay-dk / README.md
Last active December 4, 2026 23:09
Blank slate CSS reset for 2026

Blank Slate CSS Reset for 2026

🔗 Demo Page

I pieced this together from various articles, forum posts, and published CSS resets.

The goal is to have a full reset that works for most, modern, evergreen browsers.

A few rules could be considered "normalization" - but I'm trying for as much of a clean slate as possible, with the only exceptions being things like <strong> being bold, <em> being italics, and <a> tags having an underline; for accessibility reasons, these are not things we should reset by default.