Skip to content

Instantly share code, notes, and snippets.

View weaponsforge's full-sized avatar
🌴
On vacation

Weapons Forge weaponsforge

🌴
On vacation
View GitHub Profile
@weaponsforge
weaponsforge / llm-wiki.md
Created August 4, 2026 12:22 — 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.

@weaponsforge
weaponsforge / clean_code.md
Created July 22, 2026 03:39 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@weaponsforge
weaponsforge / docker-cleanup.sh
Created April 20, 2025 04:28
Stops and deletes ALL Docker resources
#!/bin/bash
# Stops and deletes ALL Docker resources
docker image prune
docker rmi $(docker images -a -q)
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker system prune -f
docker system prune -a
docker volume prune -f
@weaponsforge
weaponsforge / Dockerfile
Last active January 22, 2025 17:34
Comon Dockerfile for Node Scripts
FROM node:20.15.3-alpine AS base
RUN mkdir -p /opt/app
WORKDIR /opt/app
RUN adduser -S user
RUN chown -R user /opt/app
COPY package*.json ./
FROM base AS development
RUN npm install
COPY . ./
@weaponsforge
weaponsforge / good-reads.md
Last active October 12, 2025 13:17
Links to Dev Resources and Notes
  • How To Ask Questions The Smart Way [link]
  • How To Write A Good Commit Message [link]
@weaponsforge
weaponsforge / debugging_with_vscode.md
Last active March 13, 2025 00:44
Debugging with VSCode

Debugging with VSCode

These notes are compatible with VSCode/Cursor having the following specs. Steps for other versions may vary.

Version: 0.42.3
VSCode Version: 1.93.1
Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40
Date: 2024-10-16T17:56:07.754Z
Electron: 30.4.0
@weaponsforge
weaponsforge / version.sh
Created August 29, 2024 16:36
NodeJS Package Version
#!/bin/bash
# Prints the version of a nodejs package.json file
VERSION=`node -e "console.log(require('../app/package.json').version)"`
echo Synchronizing all modules to version $VERSION
@weaponsforge
weaponsforge / libraries-frameworks.md
Last active December 23, 2023 14:26
Interesting Libraries and Frameworks

Websockets

  • List of tools for playing with Websockets [link]

TotalJS Platform

  • unique JavaScript solution targeted at creating rich real-time web applications
  • has an intuitive (nocode-like) drag and drop UI
  • Website [link]
  • GitHub [link]
@weaponsforge
weaponsforge / react-optimization.md
Last active November 21, 2023 03:12
React Optimization Techniques

React Optimizations

A list of interesting React optimization techniques.

[1] Do less work during rendering