Skip to content

Instantly share code, notes, and snippets.

View dc0d's full-sized avatar
πŸ’­
Some Sketches Β―\_(ツ)_/Β―

Kaveh Shahbazian dc0d

πŸ’­
Some Sketches Β―\_(ツ)_/Β―
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.

@orenagiv
orenagiv / effective-dart-copilot-instructions.md
Last active February 24, 2026 05:46
Github Copilot Custom Instructions for Flutter / Dart based on Effective Dart

Github Copilot Custom Instructions for Effective Dart

The following can be included as part of the [.github/copilot-instructions.md])https://docs.github.com/en/copilot/how-tos/custom-instructions) file.

Coding Standards

Follow Effective Dart guidelines for consistent Documentation & Coding.

Glossary

  • A library member is a top-level field, getter, setter, or function. Basically, anything at the top level that isn't a type.
  • A class member is a constructor, field, getter, setter, function, or operator declared inside a class. Class members can be instance or static, abstract or concrete.
  • A member is either a library member or a class member.
@mavaji
mavaji / Arrows in Markdown.md
Created April 23, 2022 09:48
Arrows in Markdown
  • Up arrow (↑): ↑
  • Down arrow (↓): ↓
  • Left arrow (←): ←
  • Right arrow (β†’): →
  • Double headed arrow (↔): ↔
@thomasdarimont
thomasdarimont / TableDrivenTest.java
Last active April 23, 2025 10:57
Go like table-driven tests with JUnit5 and local records
package wb.junit5.tabledriven;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestFactory;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.RecordComponent;
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active June 12, 2026 07:31
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active June 29, 2026 02:53
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@skyzyx
skyzyx / homebrew-gnubin.md
Last active July 14, 2026 13:59
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@ww9
ww9 / gist_blog.md
Last active December 30, 2025 10:56
Using Gist as a blog #blog

Blogging with Gist

Gist simplicity can turn blogging into a liberating experience.

Pros Cons
βœ… Free, simple, fast, hassle-free ❌ Image upload in comments only
βœ… Tagging ❌ No post pinning
βœ… Search ❌ Doesn't look like a blog
βœ… Revisions ❌ Unfriendly URLs
@tadasv
tadasv / orm.go
Last active February 14, 2022 19:19
Simple ORM for Golang
/*
This is an implementation of simple ORM that supports CRUD operations on single object, column mapping from struct tags.
example:
type Account struct {
orm.Model
UUID string
Name string
Email string
@rnwolf
rnwolf / spacemacs-keybindings.md
Last active February 6, 2026 20:21 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn