Skip to content

Instantly share code, notes, and snippets.

@arapov
arapov / fs-xgspon-stick-o2-cetin-cs.md
Last active September 5, 2026 20:40
Vlastní XGS-PON SFP+ modul místo ONT na O2/CETIN — kompletní návod. FS XGS-SFP-ONT-MAC-I / MaxLinear PRX126: registrace SN, chybějící účastnický bridge port, oprava, perzistence.

Vlastní XGS-PON SFP+ modul místo ONT na O2/CETIN — kompletní návod

Výměna pronajatého ONT (Comtrend) za FS XGS-SFP-ONT-MAC-I zastrčený přímo do SFP+ portu routeru. Vyřešeno v červenci 2026 — od té doby v provozu. Všechno níže je ověřené na reálné lince O2/CETIN: výstupy v tomto textu jsou skutečné, ne ilustrační (jediné dvě odvozené věci — baby-jumbo MTU a průběh VEIP setu v 1U — jsou v textu výslovně označené).

(English version: fs-xgspon-stick-o2-cetin-en.)

Ověřená sestava: FS XGS-SFP-ONT-MAC-I (SKU 378865, čip MaxLinear PRX126,

@Iman
Iman / clean.sh
Last active September 5, 2026 20:40
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/usr/bin/env bash
# Ubuntu Server or VM Cleaner. Safe by default; aggressive when asked.
# Example safe: sudo ./clean.sh
# Example aggressive: sudo JOURNAL_DAYS=3 AGGRESSIVE=1 ./clean.sh
# Enable Docker image prune (images only): sudo ./clean.sh --docker-images
# Tested on Ubuntu 20.04, 22.04, 24.04 (server/VM images).
set -Eeuo pipefail
trap 'rc=$?; echo "Error on line $LINENO: $BASH_COMMAND (exit $rc)"; exit $rc' ERR
IFS=$'\n\t'

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.

@prateekrajgautam
prateekrajgautam / Guide: Cloudflare Tunnel with Nginx Proxy Manager.md
Last active September 5, 2026 20:26
Guide: Cloudflare Tunnel with Nginx Proxy Manager

Thought I should post my guide on how to do this, as I've struggled with this for quite some time now. I wanted something to bypass the NAT/router as I did not have the option of port-forwarding. I will also be moving quite some in the upcoming year, so dynamic IP was almost a given. And obviously I wanted it to be cheap. This does it all.

This is free, no port-forwarding required and no static IP required. Wildcard domain and SSL certificate supported. It works with Cloudflare tunnels, Cloudflare DNS, Nginx Proxy Manager and obviously TrueNAS SCALE.

I am not a professional, if you see a flaw in this design, please let me know!

Requirements:

  • Domain name at Cloudflare
@karpathy
karpathy / min-char-rnn.py
Last active September 5, 2026 20:18
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@bemo-git
bemo-git / flux2-klein-draw-things.py
Created May 22, 2026 18:00
Fix "tensorWritesFailed" for Flux.2 Klein 9B models in Draw Things — handles all CivitAI variants (ComfyUI FP8, BF16, F8_E5M2)
#!/usr/bin/env python3
"""
Makes Flux.2 Klein 9B (and other Flux2-based) safetensors models importable into Draw Things.app.
Also fixes LoRAs that fail to fuse in Draw Things and MFLUX.
Handles all four model variants automatically:
1. ComfyUI scaled-FP8 (e.g. rayKlein9b BFS)
Dequantizes F8_E4M3 weights using their per-tensor F32 scalesBF16.
Drops the comfy_quant and weight_scale tensors.
@puentejose
puentejose / doubleclickfix.ahk
Created August 9, 2020 00:29
AutoHotKey - Double Click Fix
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
*LButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 10) ;hyperclick
Return
sendinput {Blind}{LButton down}
KeyWait, LButton

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

@rob5standingby
rob5standingby / lutron_5_button_pico_remote_fixed_brightness.yaml
Created September 5, 2026 20:09
Fixed-brightness Home Assistant blueprint for a 5-button Lutron Pico remote: 100%, 75%, 50%, 25%, and off.
blueprint:
name: Lutron Pico 5 Button - Fixed Brightness Light Control
description: >-
Control one or more lights using a Lutron Pico 5-Button remote
(model PJ2-3BRL-GXX-X01).
Button mappings:
On -> 100% brightness
Raise -> 75% brightness
Middle -> 50% brightness
@djoreilly
djoreilly / ovs-cheat.md
Last active September 5, 2026 20:02
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port