Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active October 22, 2026 07:51
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

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.

@DenBread
DenBread / README.md
Created February 16, 2025 22:16
Free Activation Code for JetBrains Products

My greetings, for everyone.

How to activate any JetBrains products with 3.jetbra.in?

First we need to visit this website

https://3.jetbra.in

Click the first link with Online status, by default is ipfs.io

Screenshot 2024-12-28 at 19 22 31

@Yousha
Yousha / .gitignore
Last active October 22, 2026 07:48
.gitignore for Java/Android developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 22, 2026 07:48
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@Fluepke
Fluepke / Reference
Created October 20, 2026 16:29
C=US, O=eMudhra Inc, CN=EM OV TLS CA - G3C
https://xkcd.com/221/
@Sairahcaz
Sairahcaz / php2shell-triage.sh
Last active October 22, 2026 07:44
PHP2Shell (CVE-2026-109618/109619) read-only triage script
#!/usr/bin/env bash
#
# php2shell-triage.sh
# Read-only triage for PHP2Shell (CVE-2026-109618 / CVE-2026-109619).
# It checks whether your PHP build was in the vulnerable range and looks for
# the few signals an exploitation attempt tends to leave behind.
#
# It never changes anything on the system. It only reads logs and lists files.
# Run as root (or via sudo) so it can read FPM and auth logs:
# sudo bash php2shell-triage.sh [WEBROOT]
@amcnamara
amcnamara / gist:88165926a192e768cc5e86293340935d
Created January 19, 2025 04:06
Wayback Machine asset list for WikiChip (defunct)
http://web.archive.org/web/20131223233007id_/http://en.wikichip.org/wiki/Variables_-_C
http://web.archive.org/web/20131223233017id_/http://en.wikichip.org/wiki/Operator_precedence_and_associativity_-_C
http://web.archive.org/web/20131223233043id_/http://en.wikichip.org/wiki/Data_types_-_C
http://web.archive.org/web/20131223233124id_/http://en.wikichip.org/wiki/Generic_selection_-_C
http://web.archive.org/web/20131223233701id_/http://en.wikichip.org/wiki/Phobos
http://web.archive.org/web/20131229224818id_/http://en.wikichip.org/wiki/Category:Lua_Standard_Libraries
http://web.archive.org/web/20131229224905id_/http://en.wikichip.org/wiki/Deque_Header_-_C%2B%2B
http://web.archive.org/web/20131229224944id_/http://en.wikichip.org/wiki/Assert.h
http://web.archive.org/web/20131229224952id_/http://en.wikichip.org/wiki/Complex.h
http://web.archive.org/web/20131229224959id_/http://en.wikichip.org/wiki/Ctype.h