Skip to content

Instantly share code, notes, and snippets.

View up1's full-sized avatar

Somkiat Puisungnoen up1

View GitHub Profile
@up1
up1 / llm-wiki.md
Created April 11, 2026 04:10 — 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.

@up1
up1 / 1.txt
Last active April 9, 2026 02:06
Gemma 4 in Ollaman
$ollama run gemma4:e2b
pulling manifest
Error: pull model manifest: 412:
The model you are attempting to pull requires a newer version of Ollama.
Please download the latest version at:
https://ollama.com/download
@up1
up1 / 1.ts
Last active April 3, 2026 06:16
Screencast API in Playwright 1.59
// playwright.config.ts
export default defineConfig({
use: {
video: {
mode: 'on',
show: {
actions: { position: 'top-left' },
test: { position: 'top-right' },
},
},
@up1
up1 / mcp.json
Created April 2, 2026 12:43
Draw.io MCP
{
"servers": {
"drawio": {
"command": "npx",
"args": ["@drawio/mcp"]
}
}
}
@up1
up1 / 1.txt
Created March 27, 2026 16:27
Cline Kanban
$npm i -g cline
$cline
@@
@@@@@@
@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@
@@@@@ @@@@ @@@@@
@@@@@@ *@@@ @@@@@@
@up1
up1 / 1.txt
Last active March 22, 2026 15:33
Playwright Skill for API Testing
$npx skills add testdino-hq/playwright-skill
███████╗██╗ ██╗██╗██╗ ██╗ ███████╗
██╔════╝██║ ██╔╝██║██║ ██║ ██╔════╝
███████╗█████╔╝ ██║██║ ██║ ███████╗
╚════██║██╔═██╗ ██║██║ ██║ ╚════██║
███████║██║ ██╗██║███████╗███████╗███████║
╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚══════╝
@up1
up1 / 1.txt
Last active March 22, 2026 04:14
API testing with Schemathesis
$uvx schemathesis run https://petstore.swagger.io/v2/swagger.json --checks all
Installed 41 packages in 55ms
Schemathesis v4.12.2
━━━━━━━━━━━━━━━━━━━━
✅ Loaded specification from https://petstore.swagger.io/v2/swagger.json (in
2.73s)
Base URL: https://petstore.swagger.io/v2
Specification: Open API 2.0
@up1
up1 / 1.txt
Last active March 20, 2026 06:51
Hello Java 26
// Java 25
$java -version
openjdk version "25" 2025-09-16
OpenJDK Runtime Environment (build 25+35-3488)
OpenJDK 64-Bit Server VM (build 25+35-3488, mixed mode, sharing)
$java Hello.java
Hello
Goodbye
@up1
up1 / after.go
Last active March 17, 2026 13:00
Go reduce size of binary
package main
import (
"fmt"
)
type HeavyService struct{}
func (s *HeavyService) MethodA() { fmt.Println("A") }
func (s *HeavyService) MethodB() { fmt.Println("B") } // This will be stripped if unused
@up1
up1 / 1.txt
Last active March 14, 2026 08:53
Hello Qwen Code
$bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)" -s --source qwenchat
==========================================
Qwen Code Installation Script
==========================================
ℹ️ System: Darwin 25.2.0
ℹ️ Shell: zsh