Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# one-liner:
# $ ini_vars() { sed -E '/^[ \t]*(#|$|\[)/d; s/^[ \t]*([A-Za-z_][^ \t]+)[ \t]*=.*$/\1/g' "$@" | LC_ALL=C sort; }; LC_ALL=C comm -23 <(ini_vars /etc/dnf/dnf.conf) <(dnf --dump-main-config | ini_vars)
export LC_ALL=C
ini_vars() {
sed -E '/^[ \t]*(#|$|\[)/d; s/^[ \t]*([A-Za-z_][^ \t]+)[ \t]*=.*$/\1/g' "$@" | sort
}
comm -23 <(ini_vars /etc/dnf/dnf.conf) <(dnf --dump-main-config | ini_vars)
@jetfir3
jetfir3 / download_workstation.ps1
Last active December 5, 2026 05:39
Download VMware Workstation for Windows without a Broadcom Account
# Download VMware Workstation Windows installers from Internet Archive.
# Requires PowerShell 5.1 or newer and Windows' built-in curl.exe.
param(
[string]$Version,
[switch]$Latest,
[switch]$List,
[switch]$Url,
[Alias('Directory')][string]$OutDir,
[string]$ArchiveItem = 'vmwareworkstationarchive',
[switch]$Help

#Wilfred Opening Quotes

##Season 1 ###Episode 1

Sanity and happiness are an impossible combination.

  • Mark Twain

###Episode 2

Trust thyself only, and another shall not betray thee.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 5, 2026 05:19
Conventional Commits Cheatsheet

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.

@okigan
okigan / repro_slot_restore.py
Created October 4, 2026 00:04
llama.cpp: test KV cache reuse after slot save -> restart -> restore (master vs PR #26004 vs okigan/kv-slot-restore-checkpoints)
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = []
# ///
"""repro_slot_restore.py - build llama.cpp refs and test KV reuse after slot save -> restart -> restore.
Run with no arguments. For each ref in REFS and each model config (MODELS x without/with MTP x KV_CACHE_TYPES):
1. resolve the ref to a commit sha (git ls-remote)
2. fetch that sha and build llama-server into WORKDIR/builds/<sha12>-<platform>/ (skipped if already built)
// ==UserScript==
// @name 크랙(Crack) 대화 프로필 ↔ 유저노트 자동 동기화 매니저
// @namespace https://crack.wrtn.ai/
// @version 2.0.0
// @description 크랙(Crack) 채팅방의 [대화 프로필] 메뉴에 통합 매니저를 직접 연동하여, 장르별 폴더 관리, 프로필 변경 시 전용 유저노트 자동 덮어쓰기, 공통 지침 합본, 무제한 추가 유저노트 및 외부 API 연동을 지원합니다.
// @author Crack Persona Sync
// @match https://crack.wrtn.ai/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addStyle
@gsohler
gsohler / gist:4ef58cf14b2a4ec95f94ff1a27d894d4
Created December 4, 2026 19:16
ToolTrace in PythonSCAD
"""tooltrace -- photo of a tool on A4 paper -> polygon for PythonSCAD.
Put a dark tool on a white A4 sheet, take a photo from above, type
`tooltrace(` in the editor and click the calltip.
"""
import math
from collections import Counter
from pyscadforms import parse_arguments # also sets up PyQt6 inside PythonSCAD
from pythonscad import *
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS