Skip to content

Instantly share code, notes, and snippets.

View hung-doan's full-sized avatar

Hung Doan hung-doan

View GitHub Profile
@hung-doan
hung-doan / llm-wiki.md
Created April 14, 2026 06:00 — 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.

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@hung-doan
hung-doan / rearct-native-app-in-wsl2.md
Created June 4, 2023 06:46 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
@hung-doan
hung-doan / Publish Profile
Created November 18, 2019 09:41 — forked from patriksvensson/Publish Profile
Cake: Publish Profile
MSBuild("./src/MySolution.sln", settings =>
settings.WithProperty("DeployOnBuild", "true")
.WithProperty("PublishProfile", "profilename"));
<script>
onSubmit():Obversable
{
return _http.post();
}
//
InputForText(){}
InputForNumber(){}
InputForDate(){}
</script>
Develop -> master
Develop: continuous build, QC can test ticket as soon as possible
master: stable version
1. Developer branch "ticket/DV-123-Description" from develop
2. Develop submit a pull request from "ticket/DV-123-Description" to develop
3. Dev Ops create release branch "release/v1.1.0" to define a version number & tag version number
3. Dev Ops submit a pull request from "release/v1.1.0" to master
4. CI buil master branch
@hung-doan
hung-doan / xerxes.c
Created December 17, 2016 12:06 — forked from Xe/xerxes.c
//Xerxes, code assumed to be public domain
//by tH3j3st3r
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <netdb.h>
#include <signal.h>
body {
background-color: #fff;
}
@hung-doan
hung-doan / README.MD
Created November 1, 2016 03:50
Error Description Binary

Error Description Binary