Skip to content

Instantly share code, notes, and snippets.

View malyzeli's full-sized avatar

Jiří Zelinka malyzeli

  • Prague, Czech Republic
View GitHub Profile
@malyzeli
malyzeli / llm-wiki.md
Created July 27, 2026 09:03 — 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.

@malyzeli
malyzeli / port-forwarding-inside-local-network.md
Last active May 17, 2025 20:05
Port forwarding inside local network

Port forwarding inside local network

Problem introduction

This guide is meant to solve the issue when using TrueNAS Scale apps with Nginx Proxy Manager, which is not running on default HTTP(S) ports because those are already used by TrueNAS web interface.

_In case of isolated TrueNAS instance it's possible to change web interface ports so Nginx proxy can use HTTP(S) defaults, but that configuration

@malyzeli
malyzeli / 00-update.sh
Last active December 30, 2022 01:23
Xubuntu setup scripts
apt update
@malyzeli
malyzeli / output.js
Last active May 5, 2020 01:06
Material-UI Create Color Styles
const output = {
textError: {
color: "#b00020",
"&:hover": {
backgroundColor: "rgba(176, 0, 32, 0.04)",
"@media (hover: none)": { backgroundColor: "transparent" },
},
},
textWarning: {
color: "#cc6600",
@malyzeli
malyzeli / apt-list.sh
Last active November 10, 2019 16:16
List explicitly installed packages on Ubuntu
# Filters packages installed by system using logs from `/var/log/installer/initial-status.gz`
# source: https://unix.stackexchange.com/a/80520
comm -13 \
<(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort) \
<(comm -23 \
<(dpkg-query -W -f='${Package}\n' | sed 1d | sort) \
<(apt-mark showauto | sort) \
)
@malyzeli
malyzeli / docker-aliases.sh
Last active May 10, 2021 14:31
Docker shell aliases
alias dps="sudo docker ps -a --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\""
alias dpi="sudo docker ps -a --format \"table {{.Names}}\t{{.ID}}\t{{.Image}}\""
# sorting
#> dps | sort
#> dps | sort -k 2