Skip to content

Instantly share code, notes, and snippets.

@phpfour
phpfour / optimize.md
Created June 9, 2026 17:29
Claude Fable 5 Prompt

Act as a Principal Software Architect and Performance Engineer.

Your task is to perform a comprehensive performance audit and refactor of this entire codebase.

Before making any changes:

  1. Thoroughly analyze the architecture, code structure, dependencies, database access patterns, caching strategy, queues, API endpoints, background jobs, asset loading, and deployment configuration.

  2. Identify all performance bottlenecks, including but not limited to:

  • N+1 database queries

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.

@horaceho
horaceho / 置身钉内.md
Last active June 10, 2026 04:38
置身钉内・滕雅辛

《置身钉内》

作者:滕雅辛(幽素)
发布:2026年6月5日
全文:7.5万字


1696921482553
@nateberkopec
nateberkopec / gem_mfa_audit.rb
Created June 9, 2026 03:47
Audit Gemfile.lock gems for human MFA enforcement and Trusted Publishing
#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler"
require "cgi"
require "json"
require "net/http"
require "optparse"
require "thread"
require "uri"
@sourangshupal
sourangshupal / main.py
Created May 4, 2025 11:37
AWS BEDROCK DEMO
import json
import boto3
import botocore.config
from datetime import datetime
### AWS BEDROCK CALL ###
# {
# "modelId": "meta.llama4-scout-17b-instruct-v1:0",
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active June 10, 2026 04:10
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md