Skip to content

Instantly share code, notes, and snippets.

View porcow's full-sized avatar
🏠
Working from home

0xNil porcow

🏠
Working from home
View GitHub Profile
@porcow
porcow / llm-wiki.md
Created April 7, 2026 11:27 — 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.

@porcow
porcow / GitConfigHttpProxy.md
Created July 12, 2023 04:12 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@porcow
porcow / keybase.md
Last active June 25, 2018 04:55
keybase.md

Keybase proof

I hereby claim:

  • I am porcow on github.
  • I am porcow (https://keybase.io/porcow) on keybase.
  • I have a public key ASC7CriYZpto2_nFPBwRAI2ReDVxwQyvwAknyUSK0X0FJQo

To claim this, I am signing this object:

@porcow
porcow / _.md
Created May 9, 2013 09:49
D3test

Python Number Conversion Chart

From To Expression

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@porcow
porcow / FOO.sh
Created December 3, 2012 18:19
System V init script
#!/bin/bash
#
# chkconfig: 35 90 12
# description: Foo server
#
# For CentOS and RedHat run the following command as root :
# /sbin/chkconfig FOO on
#
# Get function from functions library
. /etc/init.d/functions
@porcow
porcow / .tmux.conf
Created November 13, 2012 06:31 — forked from zhasm/.tmux.conf
tmux config
#ctrl a
set -g prefix ^a
unbind ^b
bind a send-prefix
#此类配置可以在命令行模式中输入show-options -g查询
#set-option -g base-index 1 #窗口的初始序号;默认为0,这里设置为1
set-option -g display-time 5000 #提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
set-option -g repeat-time 1000 #控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
set-option -g status-keys emacs #操作状态栏时的默认键盘布局;可以设置为vi或emacs
set-option -g status-right "#(date +%H:%M' ')" #状态栏右方的内容;这里的设置将得到类似23:59的显示
@porcow
porcow / fib.rkt
Created November 4, 2012 20:10
SICP Exercise 1.19 Solution
(define (fib n)
(define (even? n)
(= (remainder n 2) 0))
(define (square n)
(* n n))
(define (double n)
(+ n n))
(define (fib-iter a b p q count)
(cond ((= count 0) b)
((even? count) (fib-iter a