Skip to content

Instantly share code, notes, and snippets.

@mietek
mietek / set-up-l2tp-ipsec-vpn-on-debian.md
Last active January 28, 2026 08:25
Set up L2TP/IPsec VPN on Debian

Set up L2TP/IPsec VPN on Debian

Set up IPsec

Set up networking

@thebillzh
thebillzh / language-guard.sh
Created March 22, 2026 17:42
language-guard stop hook
#!/bin/bash
# Claude Code Stop hook — warn when response contains deflecting language
# Non-destructive: exit 2 sends feedback to Claude for self-correction;
# stop_hook_active check prevents infinite revision loops.
INPUT=$(cat)
# Prevent infinite loop: if already in a stop-hook correction cycle, let it go
STOP_ACTIVE=$(/usr/bin/python3 -c "import sys,json; print(json.load(sys.stdin).get('stop_hook_active', False))" <<< "$INPUT" 2>/dev/null)
if [ "$STOP_ACTIVE" = "True" ]; then

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.