Skip to content

Instantly share code, notes, and snippets.

@shenoy-anurag
shenoy-anurag / llm-wiki.md
Created April 17, 2026 16:24 — 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.

@shenoy-anurag
shenoy-anurag / rtl8188eus-on-raspi.md
Created December 17, 2025 15:02 — forked from darth-veitcher/rtl8188eus-on-raspi.md
Installing a TP-Link TL-WN725N Wireless Adapter on a RaspberryPi

This was a proper pain... Turns out there's a whole host of issues with the rtl8188eus driver.

Steps to fix (on Debian / RaspberryPi OS).

1. Install build tools

sudo apt install -y \
  build-essential \
 git \
@shenoy-anurag
shenoy-anurag / anurags-pwb-search.xml
Created April 20, 2025 01:34
anurags-pwb-search.xml
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>PWB</ShortName>
<Description>PayWallBuster Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://paywallbuster.com/favicon-32x32.png</Image>
<Url type="text/html" method="GET" template="https://paywallbuster.com/articles?article={searchTerms}"/>
<moz:SearchForm>https://paywallbuster.com/articles</moz:SearchForm>
</OpenSearchDescription>
@shenoy-anurag
shenoy-anurag / pip_list_to_requirements.py
Last active November 22, 2024 01:14
Convert the format of `pip list` to requirements.txt file
"""
Sometimes when you run `pip freeze > requirements.txt` when using a conda environment,
it spits out the exact locations of the packages on the local machine.
This script allows you to run `pip list` instead, and
convert the output of `pip list` into the format used by `requirements.txt` files.
"""
import re
@shenoy-anurag
shenoy-anurag / useful-bash-commands.sh
Last active September 21, 2022 05:04
Useful Bash commands
#!/usr/bin/env bash
alias ip="dig +short myip.opendns.com @resolver1.opendns.com" # returns public IP address.
alias localip="ipconfig getifaddr en0" # returns private/local network DHCP IP address. change to en1 if using ethernet.
service_name="mongod"
sudo service $service_name status # shows status of service_name. eg: sudo service mongod status
Please provide the AWS S3 Bucket Region: us-east-2
Use AWS Signature Version 4?[Y/n] Y
is_aws_signature_v4: True
Testing Connection...
[OK] Connection To S3 Account
[OK] Write Permissions
[ERROR] Read Permissions
Error Connecting to S3: Please check you have read permissions on the S3 bucket.
Details: Traceback (most recent call last):
File "/Users/anurags/Projects/DataOps/diffgram/install.py", line 290, in validate_s3_connection
@shenoy-anurag
shenoy-anurag / diffgram-cluster.yml
Created June 3, 2022 21:00
Diffgram EKS Cluster
apiVersion: eksctl.io/v1alpha5
availabilityZones:
- us-east-2b
- us-east-2a
- us-east-2c
cloudWatch:
clusterLogging: {}
iam:
vpcResourceControllerPolicy: true
withOIDC: false
@shenoy-anurag
shenoy-anurag / typescript-learning.js
Created March 16, 2022 01:42
Learning the basics of Typescript and Javascript
console.log("Hello World");
let id: number = 3.14;
let num_name: string = "Pi";
let isRational: boolean = true;
let ch: any = 'c'
let n = undefined
let n2 = null
console.log(typeof n)
@shenoy-anurag
shenoy-anurag / Keras-dev-aarch64.dockerfile
Created February 3, 2022 20:00
Builds keras-dev container for arm64 / aarch64 systems
FROM python:3.9
# https://code.visualstudio.com/docs/remote/containers-advanced#_creating-a-nonroot-user
ARG USERNAME=keras-vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
@shenoy-anurag
shenoy-anurag / Plot_Examples.md
Created September 15, 2021 00:56 — forked from gizmaa/Plot_Examples.md
Various Julia plotting examples using PyPlot