Skip to content

Instantly share code, notes, and snippets.

@mathiasverraes
mathiasverraes / TestFrameworkInATweet.php
Last active May 17, 2026 04:00
A unit testing framework in a tweet.
<?php
function it($m,$p){echo ($p?'✔︎':'')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);}

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.

@Kompas
Kompas / dflash-coder-next-forum-post.md
Last active May 17, 2026 03:58
DFlash speculative decoding for Qwen3-Coder-Next on DGX Spark — 2-line vLLM patch, 88-108 tok/s

Qwen3 Coder Next + DFlash on DGX Spark: 108 tok/s with a 2 line vLLM patch

I got DFlash speculative decoding working with Qwen3 Coder Next on my DGX Spark (GB10, 128 GB unified memory). Result: 88-108 tok/s depending on task complexity, up from 62 tok/s without DFlash.

Tool calling works too (--enable-auto-tool-choice --tool-call-parser qwen3_coder), tested at 89 tok/s with DFlash active. Useful if you're running coding agents that need function calls.

The fix turned out to be surprisingly simple: two lines of Python.

The Problem

@mattbell87
mattbell87 / Steam-on-fedora.md
Last active May 17, 2026 03:57
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories

@g023
g023 / ds4_oai_prxy.py
Last active May 17, 2026 03:54
OpenAI-compatible proxy for DeepSeek V4 Flash with intelligent auto context compression features
#!/usr/bin/env python3
"""
Zero-dependency OpenAI-compatible proxy for DeepSeek V4 Flash.
Author: g023
License: MIT
All client‑supplied model and generation parameters are **ignored**.
The proxy always uses the model, max output tokens, and other settings
defined in the global configuration (see --help and the constants below).
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active May 17, 2026 03:47 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@jetfir3
jetfir3 / download_fusion.sh
Last active May 17, 2026 03:43
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).
@dogancelik
dogancelik / bookmarks.sql
Last active May 17, 2026 03:38
Export Firefox Mobile Bookmarks #Android
/* bookmarks are stored in “/data/data/org.mozilla.firefox/files/mozilla/…….default/browser.db” */
SELECT url, created
FROM bookmarks
WHERE COALESCE(url, '') <> ''
ORDER BY created ASC