Skip to content

Instantly share code, notes, and snippets.

View mmartinez's full-sized avatar

Max Martínez mmartinez

View GitHub Profile

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.

@SilenNaihin
SilenNaihin / setup-claude-code.md
Last active March 14, 2026 17:19
Claude Code: Global setup command - installs plugins, commands, agents

Setup Claude Code

You are setting up Claude Code globally on this machine. This captures best practices from agentic coding workflows.

Step 0: Check Existing Setup

First, check what's already configured:

ls ~/.claude/commands/ 2>/dev/null
name: ci-cd pipeline deploy to prod
on:
push:
branches: [ feature/github-action ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Get Github action IP
@Xavier59
Xavier59 / privatekeysolana.js
Created December 28, 2021 14:49
Convert Solana private key from/to base58/uint8array
// exporting from a bs58 private key to an Uint8Array
// == from phantom private key to solana cli id.json key file
// npm install bs58 @solana/web3.js
const web3 = require("@solana/web3.js");
const bs58 = require('bs58');
let secretKey = bs58.decode("[base58 private key here]");
console.log(`[${web3.Keypair.fromSecretKey(secretKey).secretKey}]`);
// exporting back from Uint8Array to bs58 private key
@TiagoGouvea
TiagoGouvea / MigrationFresh.js
Created January 13, 2021 11:51
Adonis migration:fresh command with optional seed, that recreates the schema from scratch and seed data
'use strict';
const { Command } = require('@adonisjs/ace');
const Seeder = require('../../database/seeds/Seeder');
const ace = require('@adonisjs/ace');
class MigrationFresh extends Command {
/**
* Command signature
*/
<?php
// php cluter-quick-check --host <host> --port <port> [--auth password]
function panicAbort($str_msg) {
fprintf(STDERR, "Error: $str_msg\n\n");
$bt = debug_backtrace();
fprintf(STDERR, "--- BACKTRACE ---\n");
foreach (debug_backtrace() as $frame => $frame_info) {
@carnal0wnage
carnal0wnage / gist:cd5d5c714fd69691d80650887c3d5d75
Last active September 12, 2023 12:31
Google Sheet Code to grab current price from coin market cap
//from: https://github.com/rathergood/Crypto-Currency-Price/blob/master/ccprice
//returns price (or other info) of cryptocurrency from coinmarketcap api.
//takes two parameters, the name of the cryptocurrency and info that you want returned about the cc
//example: =ccprice("ethereum", "USD")
//example2 =ccprice("ethereum", "24h_volume_usd")
function ccprice(name, currency)
{
@nathanbirrell
nathanbirrell / cntlm-change-password.md
Last active November 16, 2021 08:49
Change CNTLM password on MacOS/Linux

Many corporate security policies require regular password changes, CNTLM makes these very easy.

First, get the hashes for the new password with:

cntlm -H

Copy and paste those hashes into your cntlm.conf file located at:

/usr/local/etc/cntlm.conf

@IBestuzhev
IBestuzhev / .pylint.py
Last active February 13, 2019 05:01
Pylint for remote projects
#!/usr/bin/env python3
import subprocess
import sys
path = sys.argv[-1]
if path.startswith('/path/to/my/local/source/folder/'):
path = path.replace('/path/to/my/local/source/folder/', '/app/folder/')
subprocess.run(['docker-compose', 'exec', '-T', 'cross', 'sh', '-c',
@alexathylane
alexathylane / iOS Universal Links Support Checklist.md
Last active July 15, 2025 18:31
iOS Universal Links Support Checklist