# update the system
sudo apt update && sudo apt upgrade -y
# install minimal dev stuff
sudo apt install -y \
build-essential \
ca-certificates \| #!/usr/bin/env bash | |
| # ========================================================= | |
| # OMARCHY + WINDOWS SECURE BOOT GUIDE | |
| # Limine + sbctl + Custom Keys | |
| # ========================================================= | |
| # | |
| # WHAT THIS DOES: | |
| # - Enables Secure Boot on Omarchy | |
| # - Keeps Windows bootable |
| sudo pacman -S --needed base-devel git pkgconf cmake make gcc | |
| # Install Paru | |
| if ! command -v paru >/dev/null 2>&1; then | |
| git clone https://aur.archlinux.org/paru.git | |
| cd paru || exit | |
| makepkg -si | |
| fi | |
| # Install Fabric AI + dependencies |
| #!/usr/bin/env bash | |
| # sets MAKEFLAGS in /etc/makepkg.conf | |
| # so makepkg (AUR/package builds) uses all CPU cores minus one for faster compilation | |
| sudo bash -c 'grep -q "^MAKEFLAGS=" /etc/makepkg.conf && sed -i "/^MAKEFLAGS=/c\MAKEFLAGS=\"-j$(( $(nproc) - 1 ))\"" /etc/makepkg.conf || echo "MAKEFLAGS=\"-j$(( $(nproc) - 1 ))\"" >> /etc/makepkg.conf' | |
| # ------------------------------------------------------------ | |
| # Helpers | |
| # ------------------------------------------------------------ | |
| zshrc_append() { |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ============================================================ | |
| # Rust development environment bootstrap (Arch Linux + zsh) | |
| # ============================================================ | |
| # ------------------------------------------------------------ | |
| # Helpers | |
| # ------------------------------------------------------------ |
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.
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.
| /** | |
| * Bitwise Mathematics Utilities | |
| * | |
| * A collection of fast bitwise operations for integer mathematics. | |
| * These functions prioritize performance over readability and should be used | |
| * when micro-optimizations are critical (game engines, real-time applications). | |
| * | |
| * References: | |
| * - http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html | |
| * - http://jsperf.com/bitwise-vs-math-object |
| const getElementsByText = (text, parent) => { | |
| if (!text) return [] | |
| const xpath = `//*[text()='${text}']` | |
| const xpathResult = document.evaluate( | |
| xpath, | |
| parent || document, | |
| null, | |
| XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, | |
| null | |
| ) |