Skip to content

Instantly share code, notes, and snippets.

View preinboth's full-sized avatar
🎯
Focusing

Peter Reinboth preinboth

🎯
Focusing
  • Berlin, Germany
View GitHub Profile
@preinboth
preinboth / llm-wiki.md
Created May 7, 2026 18:55 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@preinboth
preinboth / populate.py
Created February 14, 2023 15:56 — forked from CruiseDevice/populate.py
A script to automatically populate the database with realistic and credible data. Taken from tango-with-django-book.
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
@preinboth
preinboth / User Styles für Joplin
Created August 24, 2021 09:40 — forked from nextab/User Styles für Joplin
Erzeugt mehr Abstände zwischen den gerenderten Elementen in einer Joplin-Notiz => weniger Sachen "kleben" aneinander.
/* For styling the rendered Markdown */
h1 { margin-top: 45px; }
ul + *, * + table { margin-top: 30px; }
hr { margin: 30px 0; }
ul li.md-checkbox label.checkbox-label-checked { text-decoration: line-through; }

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@preinboth
preinboth / bash.sh
Created May 14, 2017 18:15 — forked from a-r-m-i-n/bash.sh
How to install TYPO3 from commandline
cd /var/www/html
rm -Rf *
composer require typo3/cms:"^7.6" helhum/typo3-console:"^4.5" gridelementsteam/gridelements:"^7.1"
vendor/bin/typo3cms install:setup --force --database-user-name "root" --database-user-password "" --database-host-name "localhost" --database-name "typo3_76" --database-port "3306" --database-socket "" --admin-user-name "admin" --admin-password "password" --site-name "TYPO3 Project" --site-setup-type "site" --use-existing-database 0
vendor/bin/typo3cms cache:flush
php typo3/cli_dispatch.phpsh extbase extension:install gridelements
@preinboth
preinboth / whatsapp_phone_enumerator_floated_div.js
Created May 13, 2017 15:26
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
lib.randomImages = COA
lib.randomImages {
10 = LOAD_REGISTER
10 {
images.cObject = FILES
images.cObject {
folders = 1:user_files/zufallsbilder/
renderObj = TEXT
renderObj {
lib.category = COA
lib.category {
10 = CONTENT
10 {
table = sys_category
select {
pidInList = root,-1
join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
where = (uid_foreign = 22) // uid des Inhaltselemente ersetzen bzw. dynamisieren (where.data = ... )
selectFields = title
@preinboth
preinboth / menu.ts
Created April 15, 2016 18:29 — forked from pgampe/menu.ts
Fully cached menu with TypoScript
page.10 >
page.10 = COA
page.10 {
cache {
key = main-menu
}
10 = TEXT
10 {
@preinboth
preinboth / Example.html
Last active August 29, 2015 14:26 — forked from benjaminrau/Example.html
Prev / Next Links for tx_news detail view. Works only if your list view is sorted by "datetime desc"
{namespace vm=Vm\Vmtemplates\ViewHelpers}
<div class="navigation">
<vm:link.next newsItem="{newsItem}" settings="{settings}" class="news-next">
<span></span>
</vm:link.next>
<vm:link.prev newsItem="{newsItem}" settings="{settings}" class="news-prev">
<span></span>
</vm:link.prev>
</div>