Skip to content

Instantly share code, notes, and snippets.

View rogatec's full-sized avatar
🔋
Build something awesome

Timon "TeaMohn" rogatec

🔋
Build something awesome
View GitHub Profile
@rogatec
rogatec / llm-wiki.md
Created April 7, 2026 12:17 — 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.

@rogatec
rogatec / security.txt
Created March 5, 2026 07:32 — forked from sebiomoa/security.txt
Security.md file for AI Agents
# Security Template
This repository handles production user data and privileged database access. Treat security requirements as **non-optional**.
## Agent Rules (MUST FOLLOW)
- **No secrets in code**
- Never commit: Service role keys, JWT secrets, database passwords, API keys.
- Client-side env vars must be limited to `NEXT_PUBLIC_*` and must be non-sensitive.
(function() {
var jQuery = document.querySelector('iframe').contentWindow.jQuery;
jQuery('.activityName').each(function(){
var $this = jQuery(this);
$this.css({
overflow:'auto',
width:'200px'
});
@rogatec
rogatec / post-receive
Created October 7, 2016 10:09
git post-merge hook : update / install composer packages & composer itself
#!/bin/bash
# thanks http://www.jenssegers.be/blog/46/deploying-websites-with-git-and-composer-
# replace folder
cd "`dirname $0`/../../application/config"
# Check if a composer.json file is present
if [ -f composer.json ]; then
@rogatec
rogatec / Bank.php
Last active September 1, 2016 13:34
Zend Framework 3 get model db result with foreign keys to another/itself model with custom hydrator and form fieldsets (in progress)
<?php
namespace Employee\Model;
class Bank
{
public $id;
public $name;
public $bic;
@rogatec
rogatec / AuthController.php
Created August 25, 2016 07:30
Zend Framework 3 Authentication with Session setup
<?php
namespace Authentication\Controller;
use Employee\Model\EmployeeTable;
use Main\Form\LoginForm;
use Zend\Authentication\Adapter\DbTable\CredentialTreatmentAdapter;
use Zend\Authentication\AuthenticationService;
use Zend\Db\Sql\Select;
use Zend\Mvc\Controller\AbstractActionController;