Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active December 1, 2026 17:16
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.

@kwame-mintah
kwame-mintah / environment_variables_for_ollama.md
Last active December 1, 2026 15:42
Environment Variables for Ollama

Environment Variables for Ollama

A list of all Ollama environment variables that can be set -- accurate as of release 0.5.11.

Environment Variable Description Type Default value
OLLAMA_DEBUG Show additional debug information. bool 0
OLLAMA_HOST Which IP address Ollama server will bind to. string 127.0.0.1:11434
OLLAMA_ORIGINS Ollama allows cross-origin requests from.
@marijnvanwezel
marijnvanwezel / proofscript.ts
Created February 23, 2025 16:24
TypeScript as a proof assistant
// TypeScript can be used just like a proof assistant (for intuitionistic propositional logic)!
//
// Inspired by: https://www.youtube.com/watch?v=i-hRpYiNwBw
// We can encode False as the following recursive type, which can never
// be constructed (e.g. you would need { false: { false: { false: ... }}}).
type False = { false: False };
// True can be encoded as the inhabited singleton type "I", which
// has as its only inhabitant the string "I".
@Hellisotherpeople
Hellisotherpeople / we_wish_you_were_here.md
Last active December 1, 2026 15:32
Philipp Emanuel Weidmann (p-e-w): Our Era's Aaron Swartz

Philipp Emanuel Weidmann (p-e-w): Our Era's Aaron Swartz

A Eulogy

I was Philipp's acquaintance (I wish it were properly a friend) and coauthor on our work around XTC (eXclude Top Choices) and DRY (Don't Repeat Yourself) sampling. Most people in the open source AI world know him as p-e-w, or PeW. He was the mathematician and engineer who built Heretic after already giving the community DRY and XTC. By now you have probably seen the news out of Bhopal. Philipp Emanuel Weidmann was found dead inside a locked room on Sunday night at age 41, a day after he archived Heretic and [po

@rxaviers
rxaviers / gist:7360908
Last active December 1, 2026 15:29
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Akiyamov
Akiyamov / text.md
Last active December 1, 2026 15:27
Установка Xray, VLESS + Reality со своим доменом с помощью Caddy. Steal oneself

Обновленный гайд

В данном гайде будет рассмотрена установка прокси-сервера XRay и Caddy для маскировки под свой сайт со своим доменом. Если вы попали на эту статью не из репозитория скрипта, то вы всегда можете перейти в него по этой ссылке.
Гайд сделан для Ubuntu и Debian.

Домен

Для установки потребуется свой домен, лучше покупать не .ru и .рф, так как для них требуется паспорт.
После покупки домена советую перенести его на Cloudflare ради удобства. Как это сделать можно посмотреть здесь.
Добавьте A-запись, которая указывает на ваш виртуальный сервер, выключив при этом проксирование от Cloudflare, CDN нам не нужен. Если вы не понимаете как это сделать, то можете посмотреть это здесь.
Если вы купили домен, который исползьует punycode, например, в зоне .рф, то стоит сразу перевести

@pog5
pog5 / VMware_Keys.md
Created November 28, 2022 19:13 — forked from Vichingo455/VMware_Keys.md
VMware Workstation Pro Serial Keys

VMware Workstation Pro Serial Keys

Updated: 2022-11-18

NOTE: I DON'T GUARANTEE THE KEYS WORK, DON'T CONTACT ME IF ONE IS NOT WORKING, JUST TRY ANOTHER ONE OR QUIT THE PAGE

VMware Workstation 4.x.x

ZHDH1-UR90N-W844G-4PTN6

G1NP0-T88AL-M016F-4P8N2

ZC14J-4U16A-0A04G-4MEZP

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 1, 2026 15:22
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

@dasanik2001
dasanik2001 / ps5-to-obs-without-capture-card.md
Created November 12, 2026 14:44
Stream PS5 gameplay into OBS without a capture card

Stream PS5 gameplay into OBS without a capture card

Get your PS5's video and audio into OBS Studio over your home network, with no capture card and no paid service. You only need a computer on the same network as the console.

Tested on: macOS (Apple Silicon), dnsmasq 2.93, MediaMTX 1.21.3, November 2026. The Windows and Linux instructions follow the same method but have not been tested end to end.

How it works

When you press "Broadcast" on a PS5, the console sends a plain RTMP video stream to a Twitch server. It finds that server by asking DNS for a hostname. If your own computer answers that DNS question with its own IP address, the PS5 sends the stream to your computer instead.