Skip to content

Instantly share code, notes, and snippets.

View bberak's full-sized avatar

Boris Berak bberak

  • Sydney, Australia
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.

@NTFSvolume
NTFSvolume / onedrive_download_file.py
Last active October 10, 2025 19:30
Download OneDrive File
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "aiohttp",
# "yarl",
# ]
# ///
from __future__ import annotations
import argparse
@MrSmoke
MrSmoke / pant_code.ino
Created February 2, 2023 10:33
Pant code
#define WAIST 2
#define LEFT_LEG 3
#define RIGHT_LEG 4
#define LEFT_SHOE 5
#define RIGHT_SHOE 6
#define W WAIST
#define LL LEFT_LEG
#define RL RIGHT_LEG
#define LS LEFT_SHOE
@sindresorhus
sindresorhus / esm-package.md
Last active April 9, 2026 08:09
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@nicolasdao
nicolasdao / typescript_guide.md
Last active March 28, 2026 15:38
Typescript guide. Keywords: typescript type script ts

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@nicolasdao
nicolasdao / jekyll_guide.md
Last active March 28, 2026 15:38
Jekyll guide. Keywords: jekyll jekyl ruby liquid
@nicolasdao
nicolasdao / css_guide.md
Last active January 24, 2024 02:52
CSS How to. Keywords: css scss animation css-in-js cssinjs emotion styledcomponents styled-components lin linaria font google googlefont fonts

CSS GUIDE

Usefull links

WARNING: Safari is the new IE. If there is a cool feature in CSS, keep your excitement down as Safari probably don't support it yet. Unfortunatelly, this useless piece of shit browser is used a lot thanks to our little friend the iPhone. Safari is a big piece of junk, so please refer to the The million things Safari does not want you to do in CSS section, so that you can find work arounds.

Table of contents

@nicolasdao
nicolasdao / managing_company_australia.md
Last active October 1, 2023 10:41
Managing a company in Australia. Keywords: company setup incorporate mygov tax taxes business asic ato insurance insurances compa

MANAGING A COMPANY IN AUSTRALIA

Though the Governement's efforts to help Australians to manage their businesses and companies online is noble, they pathetically fail at making those tasks easy (though I'm sure it is better than achieving this in Ouzbekistan). To this day (mid-2020) getting things done online with the ATO or ASIC is as easy as navigating the dark web for illegal services. This document is an attempt to shed some light on this age of darkness.

@sebjai
sebjai / PriceLimitSim.ipynb
Last active June 25, 2025 18:23
Algo Trading Book Price Limiter (Chapter 7.2 of of Algorithmic and High-Frequency Trading by Cartea, Jaimungal, Penalva, published by Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.