Skip to content

Instantly share code, notes, and snippets.

View byung-u's full-sized avatar
πŸ€

Byungwoo Jeon byung-u

πŸ€
  • Seoul, Republic of Korea
View GitHub Profile
@byung-u
byung-u / llm-wiki.md
Created April 7, 2026 11:49 — 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.

@byung-u
byung-u / kerberos_setup.md
Created August 22, 2019 09:40 — forked from ashrithr/kerberos_setup.md
Set up kerberos on Redhat/CentOS 7

Installing Kerberos on Redhat 7

This installation is going to require 2 servers one acts as kerberos KDC server and the other machine is going to be client. Lets assume the FQDN's are (here cw.com is the domain name, make a note of the domain name here):

  • Kerberos KDC Server: kdc.cw.com
  • Kerberos Client: kclient.cw.com

Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in

## Cellμ—μ„œ AA둜 μ‹œμž‘ν•˜μ§€ μ•ŠλŠ” 것듀은 λͺ¨λ‘ μ•ˆλ³΄μ΄κ²Œ ν•˜κ³  μ‹Άλ‹€λŠ”
## μš”κ΅¬μ‚¬ν•­μ— λŒ€ν•΄μ„œ 이λ₯Ό 좜λ ₯ν•΄μ£ΌλŠ” μ½”λ“œ
import pandas as pd
def main():
df = pd.read_csv('./test.csv', delimiter='|', header=None)
for row in range(df.shape[1]):
df[row] = df[row].str.replace(r'^((?!AA).)*', '')
# I wanna make `grep` result like this
#
# % jgrep pStStps *.c
#
# vi -R MS_Stf.c +1006 if (!HINSERT(HTbl[T->i], &pStStps->lkey, 0, pStStps))
# vi -R MS_Stf.c +1009 pStStps->lkey, errno);
# vi -R MS_Stf.c +1010 CancelEvent(T->pool, pStStps->iTimer);
# vi -R MS_Stf.c +1011 free(pStStps);
# vi -R MS_Stf.c +1014 return pStStps;
@byung-u
byung-u / remove_subtitle_new_line.py
Last active December 29, 2016 00:31
μžλ§‰νŒŒμΌμ—μ„œ μžλ§‰μ— λΆ™μ–΄μžˆλŠ” κ°œν–‰λ¬Έμž μ œκ±°ν•΄μ£ΌλŠ” 슀크립트
#!/usr/bin/env python3.5
#
# 원본
# 00:14:17.810 --> 00:14:22.529
# since the previous function was a generator
# that returns a list of positions, the caller
# 슀크립트 μ‹€ν–‰ ν›„ κ°œν–‰λ¬Έμž 제거
# 00:14:17.810 --> 00:14:22.529
# since the previous function was a generator that returns a list of positions, the caller
#
@byung-u
byung-u / subtitle_time_remove_space.py
Last active December 28, 2016 06:29
ꡬ글 κΈ°κ³„λ²ˆμ—­ ν›„ μžλ§‰μ˜ μ‹œκ°„ 정보가 λ°”λ€ŒλŠ”λ° 이λ₯Ό ν•œλ²ˆμ— μˆ˜μ •ν•΄μ£ΌλŠ” 슀크립트
#!/usr/bin/env python3.5
#
# μžλ§‰μ˜ 원본 파일의 μ‹œκ°„ ν˜•μ‹ : 00:36:47.450 --> 00:36:50.560
# ꡬ글 κΈ°κ³„λ²ˆμ—­ ν›„μ˜ μ‹œκ°„ ν˜•μ‹ : 00 : 37 : 24.250 -> 00 : 37 : 30.160
#
# 차이점
# 1. ':' μ•žλ’€λ‘œ 곡백 μΆ”κ°€
# 2. '-'κ°€ 1개 사라짐
#
# 이λ₯Ό μ›λž˜μ˜ μžλ§‰ μ‹œκ°„ ν˜•μ‹μœΌλ‘œ 되돌렀 μ£ΌλŠ” 슀크립트
@byung-u
byung-u / exit_while_loop_by_enter_key.py
Last active March 10, 2022 21:42
Exit while loop by user hitting enter key (python)
#!/usr/bin/env python3
# http://stackoverflow.com/questions/7255463/exit-while-loop-by-user-hitting-enter-key
while True:
i = input("Enter text (or Enter to quit): ")
if not i:
print("excape") # Enter key to quit
break
print("Your input:", i)
proc_stat_list[proc_list_idx].mem_percent =
(double)(proc_stat_list[proc_list_idx].proc_rss * 100.0) / total_mem;