Skip to content

Instantly share code, notes, and snippets.

View yfe404's full-sized avatar

Yann yfe404

View GitHub Profile
@yfe404
yfe404 / llm-wiki.md
Created June 15, 2026 18:37 — 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.

@yfe404
yfe404 / pass.md
Created January 17, 2025 17:56 — forked from sgarciav/pass.md
Initialize your password store

About

Summarizing the instructions of the pass tool (as seen on its website).

Getting Started

Installation

Execute: $ sudo apt install pass

@yfe404
yfe404 / readme.md
Last active January 5, 2025 10:30 — forked from aelindeman/readme.md
ZeroTier on PiKVM

Using ZeroTier on PiKVM

Requires PiKVM OS version 2022.06.20 or newer.

Steps

  1. Install ZeroTier, then start and stop it to generate an identity

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yfe404
yfe404 / arch.sh
Created January 12, 2022 19:48
arch-setup
systemctl enable sshd ; systemctl start sshd
# select relevant servers in /etc/pacman.d/mirrorlist according to your location
# initialise keyring
pacman-key --init
# initial setup of keys
pacman-key --populate archlinux
# update everything (should be done regularly)
pacman -Sy archlinux-keyring && pacman -Su
@yfe404
yfe404 / wip.txt
Created November 26, 2021 11:29
Send encrypted files anonymously using pastebin
Pre-conditions
--------------
- The following packages must be installed on both ends: gpg, xxd.
- Sender and Receiver must know the password to encrypt/decrypt the data.
Sender
------
$ gpg --symmetric $FILE_TO_SEND
@yfe404
yfe404 / ddpv.sh
Created November 2, 2021 06:46
Monitor the progress of dd using pv (progress vue) utility
#!/bin/bash
DISK_IMAGE=~/Downloads/my-image.img
DISK=/dev/sdK
pv $DISK_IMAGE | sudo dd bs=4M of=$DISK
# This code is written at BigVision LLC. It is based on the OpenCV project. It is subject to the license terms in the LICENSE file found in this distribution and at http://opencv.org/license.html
# Usage example: python3 object_detection_yolo.py --video=run.mp4
# python3 object_detection_yolo.py --image=bird.jpg
import cv2 as cv
import argparse
import sys
import numpy as np
from urllib.request import urlopen
import os
@yfe404
yfe404 / my_tunnel.service
Last active July 3, 2020 12:31
Systemd service for ssh tunneling
[Unit]
Description="Establish a SSH tunnel to orion to map searx port to local 3337"
After=sshd.service
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=Always
RestartSec=1
User=yfe
for c in $(i3-msg -t get_bar_config | python -c \
'import json,sys;print("\n".join(json.load(sys.stdin)))'); do \
(i3bar --bar_id=$c >i3bar.$c.log 2>&1) & \
done;
cat i3bar.bar-*.log