Skip to content

Instantly share code, notes, and snippets.

View vn-tienle's full-sized avatar

Tien Huu Le vn-tienle

View GitHub Profile
@vn-tienle
vn-tienle / llm-wiki.md
Created April 6, 2026 13:50 — 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.

@vn-tienle
vn-tienle / deploy-nodejs-flightplan.md
Created August 21, 2017 06:10
Deploy a Node.JS App using Fligth Plan

#Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

#Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file
@vn-tienle
vn-tienle / create-user.md
Last active August 21, 2017 06:09
Adding a deploy user in Ubuntu Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@vn-tienle
vn-tienle / install-docker.sh
Last active February 13, 2018 18:19
Installing Docker bash shell script on Ubuntu
#!/bin/bash
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
You may get some error something like
```
ERROR: for docker_nginx_1 Cannot start service nginx: driver failed programming external connectivity on endpoint docker_nginx_1 (e968dbfa7f6e8c8a549b5765462d1aaeee76e24e28cdef12df671ba8f9448012): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint docker_nginx_1 (e968dbfa7f6e8c8a549b5765462d1aaeee76e24e28cdef12df671ba8f9448012): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
```
Following commands below
```