Skip to content

Instantly share code, notes, and snippets.

View gtzilla's full-sized avatar

gregory tomlinson gtzilla

View GitHub Profile
@gtzilla
gtzilla / llm-wiki.md
Created August 18, 2026 20:20 — 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.

@gtzilla
gtzilla / .eslintrc.js
Last active May 3, 2020 06:18
NGINX serving JavaScript SPA (Single Page Application), locally via docker-compose
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'plugin:react/recommended',
'semistandard'
],
settings:{
@gtzilla
gtzilla / Vagrantfile
Created October 15, 2019 20:07 — forked from gabrielelana/Vagrantfile
How to create a VirtualBox machine with encrypted storage with Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
PASSWORD_PATH = ".password"
PASSWORD_ID_PATH = ".password_id"
# Make sure to have installed vagrant-triggers plugin
# > vagrant plugin install vagrant-triggers
# After the first `vagrant up` stop the VM and execute the following steps
@gtzilla
gtzilla / babel.config.js
Created September 14, 2019 12:42
An example of the new babel.config.js.
'use strict'
/**
babel.config.js with useful plugins.
*/
module.exports = function(api) {
api.cache(true);
api.assertVersion("^7.4.5");
const presets = [
[
@gtzilla
gtzilla / module_initialized.commander.js
Last active December 2, 2018 11:47
Parse alternate to `process.argv`. IF/ELSE loads from CLI and loads from inclusion in another script
/*
initialize from alternate in CLI commander.js script
Included as a module in nodejs
instead of process.argv
https://github.com/tj/commander.js/
*/
if (require.main === module) {
@gtzilla
gtzilla / Twilight (SL) (Flake8Lint).tmTheme
Created July 29, 2018 07:24
The slightly modified version of twilight that I love
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0">
<dict>
<key>author</key>
<string>Michael Sheets</string>
<key>name</key>
<string>Twilight</string>
<key>settings</key>
<array>
@gtzilla
gtzilla / robinhood_auth_cred_finder.js
Created May 12, 2018 22:15
Getting the RobinHood Web Bearer Token
// a reference for getting the robinhood API bearer token
// returns a jquery promise. really is this broken...
// in CONSOLE need jquery too..
var __ss = document.createElement("script");__ss.onload=load_example;__ss.src="https://code.jquery.com/jquery-3.3.1.min.js";document.body.appendChild(__ss);
/**
Reference
If you want to hack on RobinHood in the browser, you'll need auth.
@gtzilla
gtzilla / minimal_.js
Last active May 14, 2018 00:57
Minimal Underscore Template Build System, version 0.0.1. Not a complex, configurable or complete build system for underscore.js
'use strict';
/**
ATTENTION: This is moved to https://github.com/gtzilla/minimal_.js
minimal_.js
minimal_
Minimal Underscore Template Build System, version 0.0.1
@gtzilla
gtzilla / README.md
Last active May 28, 2026 18:08
The Scripts/Config files to Create a Wireless Access Point with traffic tunneled through a socks5 proxy. Running Debian Stretch Proxmox VE 5. Uses hostapd running proxmox

Wireless Access Point

The is a collection of files that I used to create a Wireless access point that tunnels traffic through a socks5 proxy using tun2socks, hostapd, dnsmasq. This was done on a debian system, specifically Proxmox VE. The underlying hardware is an Intel Nuc. The wireless card currently only handles wireless G traffic. Testing "a" wireless resulted in the wireless interface not coming up. This could be merely user error. More information on setting hg_mode in hostapd.conf

This took approximately two days to setup corretly. The tutorials that address how-to create an access point, as well as how-to use tun2socks varied considerably. I was finally able to cobble together a working prototype that is able to tunnel traffic from my wireless access point through any SSH connection that can enable socks5 proxy.

Keybase proof

I hereby claim:

  • I am gtzilla on github.
  • I am gtzilla (https://keybase.io/gtzilla) on keybase.
  • I have a public key ASC0eYdxLw4KSr9EKFTSHJsh46iOPYcY6z7WHp0niACFmgo

To claim this, I am signing this object: