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.

@ProGM
ProGM / arel_cheatsheet_on_steroids.md
Last active July 3, 2026 20:49
Arel cheatsheet on Steroids

Arel Cheatsheet on Steroids

A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.

Tables

posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord

Table alias

@Th3w33knd
Th3w33knd / CRXLauncher.md
Last active July 3, 2026 21:24
FileCR.com is forcing a malicious extension (CRXLauncher) that injects affiliate scam scripts into websites you visit.

Hey r/Piracy and r/FMHY,

I need to share a serious warning about a malicious browser extension being forced on users by filecr.com. Many of you are already skeptical of the site, and you're right to be. I have some proofs of what they're doing.

TL;DR: The CRXLauncher extension, which filecr.com requires you to install for some downloads, is adware. It injects a heavily obfuscated script into websites you visit to perform affiliate marketing fraud (link hijacking & cookie stuffing). UNINSTALL IT IMMEDIATELY.


Context/My Background: How I Found This

@Kartones
Kartones / postgres-cheatsheet.md
Last active July 3, 2026 20:43
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@Pythonation
Pythonation / prompt.md
Last active July 3, 2026 20:42
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@jd-apprentice
jd-apprentice / ventoy-linux.md
Last active July 3, 2026 20:39
Ventoy en linux

Como armar un USB booteable desde linux

Descargar Ventoy

  • Nos dirigimos a la pagina de Ventoy Link
  • Descargamos el archivo llamado ventoy-1.0.79-linux.tar.gz

Descargar ISO's a utilizar

  • Antes de empezar el proceso seria ideal que ya tengan sus ISO's preparadas en mi caso voy a utilizar
@nousheentabassum
nousheentabassum / floyd_warshall.py
Created July 3, 2026 09:51
floyd_warshall code
import math
class Graph:
def __init__(self, n=0): # a graph with Node 0,1,...,N-1
self.n = n
self.w = [
[math.inf for j in range(n)] for i in range(n)
] # adjacency matrix for weight
self.dp = [