Skip to content

Instantly share code, notes, and snippets.

@anhvandev
anhvandev / llm-wiki.md
Created April 17, 2026 06:48 — 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.

@anhvandev
anhvandev / secure_vps.sh
Last active December 19, 2025 11:25
Basic secure for vps, ver 2
#!/bin/bash
#############################################
# VPS Security Hardening Script
# Hỗ trợ: Ubuntu, Debian, CentOS, RHEL,
# Fedora, AlmaLinux, Rocky Linux, Oracle Linux
#############################################
set -e
@anhvandev
anhvandev / basic_security.sh
Last active August 15, 2025 16:09
Basic security for vps
#!/bin/bash
# Linux Server Hardening Script for AlmaLinux and Ubuntu
# Author: Van Nguyen
# Version: 1.0
set -euo pipefail
# Colors for output
RED='\033[0;31m'
@anhvandev
anhvandev / install.sh
Last active March 29, 2025 07:21 — forked from mscribellito/install.sh
Install GUI and XRDP for AlmaLinux 9
#!/bin/bash
dnf update -y
adduser your_username && passwd your_username # create and change password
usermod -aG wheel your_username
dnf groupinstall "Server with GUI" -y
systemctl set-default graphical.target
# Cài đặt
sudo apt-get install fcitx-unikey
# Config cho hệ thống dùng fcitx thay cho ibus.
# Nếu sau này muốn đổi lại dùng ibus thì chạy tương tự.
im-config -n fcitx
# Nếu bạn dùng Ubuntu 14.04 hoặc một distro dựa trên
# bản đó thì phải cài thủ công một file nữa do gói
# cài đặt của repo bị thiếu. Các bản sau không bị.
@anhvandev
anhvandev / package.json
Created July 28, 2020 03:16 — forked from adamreisnz/package.json
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",