Skip to content

Instantly share code, notes, and snippets.

View twobombs's full-sized avatar
🌊
time draws the fractal of causality

Aryan Blaauw twobombs

🌊
time draws the fractal of causality
View GitHub Profile
@twobombs
twobombs / llm-wiki.md
Created April 7, 2026 18:30 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@twobombs
twobombs / install-openmpi
Created November 23, 2024 10:08 — forked from hokiegeek2/install-openmpi
Install openmpi on Ubuntu 22.04
sudo apt-get update && sudo apt-get install infiniband-diags ibverbs-utils \
libibverbs-dev libfabric1 libfabric-dev libpsm2-dev -y
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev
sudo apt-get install librdmacm-dev libpsm2-dev
@twobombs
twobombs / linux-oom-killer-fixes.md
Created October 30, 2022 14:11 — forked from t27/linux-oom-killer-fixes.md
Dealing with the Linux OOM Killer

Dealing with the Linux OOM Killer at the program level

Do this in cases when you dont want to change the os-level settings, but only want to disable the OOM killer for a single process. This is useful when youre on a shared machine/server.

The OOM killer uses the process level metric called oom_score_adj to decide if/when to kill a process. This file is present in /proc/$pid/oom_score_adj. The oom_score_adj can vary from -1000 to 1000, by default it is 0.

You can add a large negative score to this file to reduce the probability of your process getting picked and terminated by OOM killer. When you set it to -1000, it can use 100% memory and still avoid getting terminated by OOM killer.

!dream "a dendritic monster emerging from the ocean, sea waves, vray, 55mm" -n 5
!dream "a wormy dendritic monster emerging from the ocean, sea waves, vray, 55mm" -n 5
!dream "furry friendly monster, photorealistic, colored, unreal engine, vray, 55mm" -n 9
@twobombs
twobombs / nginx-tls.conf
Created February 16, 2018 08:55 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <gavinhungry@gmail.com>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables SPDY, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are omitted here.
#
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io
#