Skip to content

Instantly share code, notes, and snippets.

View cicorias's full-sized avatar

Shawn Cicoria cicorias

View GitHub Profile
@cicorias
cicorias / llm-wiki.md
Created April 6, 2026 17:54 — 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.

@cicorias
cicorias / .env
Last active March 11, 2026 14:00
Deploy an Azure Container App with NVIDIA CUDA
LOCATION=westus3
WORKLOAD_PROFILE_TYPE="Consumption-GPU-NC24-A100"
WORKLOAD_PROFILE_NAME="nc24-a100-profile"
@cicorias
cicorias / microgpt.py
Created February 12, 2026 12:23 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@cicorias
cicorias / git-pull-all.sh
Created January 20, 2026 14:46
refresh git repos from root
#!/bin/bash
# Script to fetch and pull git repositories listed in gitrepos.txt
# Usage: ./git-pull-all.sh [path-to-gitrepos.txt]
REPO_FILE="${1:-gitrepos.txt}"
BASE_DIR="$(pwd)"
# Check if the repo file exists
if [[ ! -f "$REPO_FILE" ]]; then
@cicorias
cicorias / README.md
Last active February 16, 2026 17:44
claude file search tool - quick guide to improve and make faster your Claude Code file suggestion
@cicorias
cicorias / README.md
Created January 6, 2026 21:12 — forked from soderlind/README.md
Ralph loop wrapper for GitHub Copilot CLI (programmatic mode)
⠀⠀⠀⠀⠀⠀⣀⣤⣶⡶⢛⠟⡿⠻⢻⢿⢶⢦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢀⣠⡾⡫⢊⠌⡐⢡⠊⢰⠁⡎⠘⡄⢢⠙⡛⡷⢤⡀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢠⢪⢋⡞⢠⠃⡜⠀⠎⠀⠉⠀⠃⠀⠃⠀⠃⠙⠘⠊⢻⠦⠀⠀⠀⠀⠀⠀
⠀⠀⢇⡇⡜⠀⠜⠀⠁⠀⢀⠔⠉⠉⠑⠄⠀⠀⡰⠊⠉⠑⡄⡇⠀⠀⠀⠀⠀⠀
⠀⠀⡸⠧⠄⠀⠀⠀⠀⠀⠘⡀⠾⠀⠀⣸⠀⠀⢧⠀⠛⠀⠌⡇⠀⠀⠀⠀⠀⠀
⠀⠘⡇⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠒⠚⠁⠈⠉⠲⡍⠒⠈⠀⡇⠀⠀⠀⠀⠀⠀
⠀⠀⠈⠲⣆⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠉⡹⠤⠶⠁⠀⠀⠀⠈⢦⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⣦⡀⠀⠀⠀⠀⠧⣴⠁⠀⠘⠓⢲⣄⣀⣀⣀⡤⠔⠃⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣜⠀⠈⠓⠦⢄⣀⣀⣸⠀⠀⠀⠀⠁⢈⢇⣼⡁⠀⠀⠀⠀⠀⠀⠀⠀
@cicorias
cicorias / update-aur-vscode.sh
Last active December 27, 2025 02:31
update vs code direct from aur instead of omarchy mirror stable which is latent
#!/usr/bin/env bash
# use this after a 'yay -S aur/visual-studio-code-bin' on omarchy / arch linux
# add to /etc/pacman.conf a "IgnorePkg = visual-studio-code-bin" as wel
set -euo pipefail
PKG="visual-studio-code-bin"
current_ver() {
@cicorias
cicorias / make-image.sh
Created September 29, 2025 14:59
make a dual boot a/b image with grub2 ubuntu debian
#!/bin/bash
# set -euo pipefail
set -x
sudo apt-get update && sudo apt-get install -y debootstrap qemu-utils
echo "create and partition disk image..."
. ./vars.sh
@cicorias
cicorias / resetWUS.ps1
Created September 17, 2025 12:19
Because windows 11 sucks i need this all the time
<#
Reset-WindowsUpdate.ps1 (fixed interpolation)
Run from an elevated PowerShell window.
#>
# --- Guard: must be admin ---
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
Write-Error "Run this script from an elevated PowerShell (Run as administrator)."
exit 1