Skip to content

Instantly share code, notes, and snippets.

View serpro69's full-sized avatar
🍵
breaking things when they work, so I can fix them later

Særgeir serpro69

🍵
breaking things when they work, so I can fix them later
  • ≈✵m̡͎̜̀̓̔͑ị̡͎̜̀̓͑l̷̵̡͎̜̀̓̔͑͜ḷ̸̷̶̴̵̢̧̨̛̤̥̦̩̪̫̬̭̮̯̹́̂̃̄̆̇̈̊̋̌̍̎̐̑́͐͗͛͡ͅͅị̸̷̶̴̵̢̨̛̤̥̦̩̪̫̬̭̮̯̹́̂̃̄̆̇̈̊̋̌̍̎̐̑́͐͗͛͡ͅẉ̷̶̴̵̢̛̤̥̦̩̪̹́̈̊̐̑́͐͗͛͡á̢̛̹͍͐͗͡y̢̛̹͍͗͡s̛͍͗✵҉
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.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@OXY2DEV
OXY2DEV / CMD.md
Last active January 23, 2026 11:16

🔰 A beginners guide to create custom cmdline

showcase

Ever wanted to know how noice creates the cmdline or wanted your own one?

No one? Guess it's just me 🥲.

Anyway, this post is a simple tutorial for creating a basic cmdline in neovim.

@scottTomaszewski
scottTomaszewski / filtering_dv.js
Created October 2, 2023 01:27
This DataviewJS View helps to add filtering functionality to a Dataview Table in Obsidian.
/*
This DataviewJS View helps to add functionality to a Dataview Table.
THIS IS A BETA RELEASE - there are bugs and its not feature-complete
Version: v0.6.0
Given a Dataview Query, this view will
- Execute the query
- Extract the headers/columns of the result
- Render filters to adjust the Dataview table results
- Render the table results, filtering and re-rendering on filter changes
@serpro69
serpro69 / dataview-query.js
Created December 31, 2022 10:24
Obsidian Dataview - display text from header section
let pages = dv.pages('#daylog');
// Loop through pages
for (let p of pages) {
let noteText = await dv.io.load(p.file.path);
// define headers to look for
const headers = ["🧭 Personal", "💻 Work"];
headers.map((header) => {
@AnubisNekhet
AnubisNekhet / !Description.md
Last active October 13, 2024 00:19
Capacities-like index card callout

This Snippet has been moved

Please use this snippet instead.

2022

Daily Journaling

const dayInMonth = moment().format("D");
const currentMonth = moment().format("M");
var i = 1;
while (currentMonth > i) {
    var entries = entriesSum(i);
    var max = daysInMonth(i);
    var perc = entries + "/" + max;
@Signynt
Signynt / Example Lecture Note.md
Last active April 23, 2022 10:55
Notes for Hub with Dataview queries
title Pathologie Vorlesung
allDay false
startTime 29700
endTime 35100
date 2022-04-05

[!info]+

  • type:: Vorlesung
@Signynt
Signynt / primary-cards.css
Last active December 26, 2024 00:59
Minimal Cards snippet with tweaks for Primary theme
/* Cards snippet for Obsidian
author: @kepano
Support my work:
https://github.com/sponsors/kepano
modified by @signynt for the Primary theme */
:root {
--cards-min-width:180px;
--cards-max-width:1fr;
--cards-mobile-width:120px;
@ScottKillen
ScottKillen / print.css
Last active March 7, 2026 14:30
PDF export stylesheet for obsidian
/* Obsidian snippet to style output of pdf exports
*/
@media print {
/* set your preferred fonts here.
*/
:root {
--body-font-family: "Newsreader Text", TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;