Skip to content

Instantly share code, notes, and snippets.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

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.

@WildSiphon
WildSiphon / DockerDesktop.yaml
Created July 5, 2025 11:00
Docker Desktop direct download links
4.0.0:
Windows: https://desktop.docker.com/win/main/amd64/67817/Docker%20Desktop%20Installer.exe
Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/67817/Docker.dmg
Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/67817/Docker.dmg
release_date: '2021-08-31'
4.0.1:
Windows: https://desktop.docker.com/win/main/amd64/68347/Docker%20Desktop%20Installer.exe
Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/68347/Docker.dmg
Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/68347/Docker.dmg
release_date: '2021-09-13'
@kibotu
kibotu / prompt-injections.md
Last active August 17, 2026 13:19
Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Purpose & scope. A defensive/educational knowledge base cataloguing known prompt-injection and jailbreak patterns, the models/systems they have affected, and the defenses against them. Compiled from primary literature (arXiv papers, vendor disclosures) and security research, June 2026.

How to read this. Every technique lists: how it works, an illustrative structural skeleton (the shape of the attack, not a weaponized payload), the models/systems it was reported against, and its current status. Examples are deliberately defanged. >

@OutThisLife
OutThisLife / 37-gh.zsh
Last active August 17, 2026 13:18
BB Workflows
# gh: auto-pin default repo when a clone has multiple remotes.
# Without this, `gh pr checkout N` fails with "No default remote repository".
# Preference: origin → upstream → first github.com remote. Silent + once per repo.
_gh_ensure_default() {
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || return 0
git config --get-regexp '^remote\..*\.gh-resolved$' >/dev/null 2>&1 && return 0
local remote
for remote in origin upstream; do
@psycho0verload
psycho0verload / Auto-generate Subpage Tree for Wiki.js 2.x.md
Last active August 17, 2026 13:15
This script dynamically loads and displays a hierarchical list of subpages for the current page in Wiki.js (version 2.x). It utilizes the built-in GraphQL API to fetch child pages and builds a nested tree view up to a specified depth.

📄 Auto-generate Subpage Tree for Wiki.js 2.x

Description:

This script dynamically loads and displays a hierarchical list of subpages in Wiki.js (version 2.x). It utilizes the built-in GraphQL API (pages.search for subpaths, pages.list for root-level) to fetch pages and builds a nested tree view up to a specified depth.

Usage:

The script can be included in two ways:

  1. Globally via Administration → Theme → Head HTML Injection

Requirements: