Skip to content

Instantly share code, notes, and snippets.

@aborruso
aborruso / gist:255f40695c45daecf3e49401cd136ded
Created September 27, 2026 16:44
violent-monkey-albo-comune-palermo.js
// ==UserScript==
// @name Albo Pretorio Palermo - attachment names
// @namespace https://github.com/aborruso/opencli
// @version 0.2.1
// @description Shows the real file name of each attachment on the act pages of the Comune di Palermo (Albo Pretorio, and the deliberations and ordinances archive of the online services portal), instead of "(Acrobat Kb ...)"
// @match https://albopretorio.comune.palermo.it/albopretorio/*
// @match https://servizionline.comune.palermo.it/portcitt/*
// @grant none
// @run-at document-idle
// ==/UserScript==

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.

@v-fox
v-fox / NVMe_tweaks.md
Last active November 20, 2026 08:15
Linux kernel optimizations for NVMe

By default Linux distros are unoptimized in terms of I/O latency. So, here are some tips to improve that.

Most apps still don't do multi-threaded I/O access, so it's a thread-per-app which makes per-app speed always bottlenecked by single-core CPU performance (that's not even accounting for stuttering on contention between multiple processes), so even with NVMe capable of 3-6 GB/s of linear read you may get only 1-2 GB/s with ideal settings and 50-150/100-400 MB/s of un/buffered random read (what apps actually use in real life) is the best you can hope for.

All writes are heavily buffered on 3 layers (OS' RAM cache, device's RAM cache, device's SLC-like on-NAND cache), so it's difficult to get real or stable numbers but writes are largelly irrelevant for system's responsiveness, so they may be sacrificed for better random reads.

The performance can be checked by:

  • `fio --name=read --readonly --rw={read/randread} --ioengine=libaio --iodepth={jobs_per_each_worker's_command} --bs={4k/2M} --direct={0/1} --num
@seraphicfae
seraphicfae / screwdiscord.md
Last active November 20, 2026 08:12
How to make Discord not display Quest tab on startup

Sooo, what's going on..?

Discord has decided to make the default page when you open the app to be the Quest home page, and we're not going to let them. Only a few users are experiencing this, so you may not be affected. (yet)

Linux and other *nix:

desktop-file-edit --set-key Exec --set-value "/usr/bin/discord discord://-/channels/@me" /usr/share/applications/discord.desktop

Flatpak:

@notnotrobby
notnotrobby / cgp.md
Last active November 20, 2026 08:09
List of free resources to study computer graphics programming.
@raghav4
raghav4 / Ansicolor.md
Created February 8, 2020 07:17
Color codes for console using Ansi
@imSp4rky
imSp4rky / decrypt_guide.py
Last active November 20, 2026 06:44
Decrypt Rested XP Guides
#!/usr/bin/env python3
"""Decrypt an RXP account-locked import .txt into the RXPDecryptedGuides addon.
Usage:
python decrypt_guide.py <import.txt> --zip
python decrypt_guide.py <import.txt> <wow_install | out_dir> [--zip]
The key is derived from your BattleTag, taken from the text after the last "!" in the
import filename. Translated imports are named ...!_deDE_YourBattleTag#1234.txt. Give a glob
that matches them all and each language gets its own lua file, loaded only on a client of
@eavirlot
eavirlot / decrypt_guide.py
Created November 8, 2026 23:25 — forked from imSp4rky/decrypt_guide.py
Decrypt Rested XP Guides
#!/usr/bin/env python3
"""Decrypt an RXP account-locked import .txt and write it out as forever.lua.
Usage:
python decrypt_guide.py <import.txt> <wow_install | out_dir>
The key is derived from your BattleTag, taken from the text after the last "!" in the
import filename. The target must exist. If it's a WoW install with RXPGuides, the guides
are installed into the addon; otherwise forever.lua is just written into it as an output folder.
@froelen
froelen / vencord-quick.css
Last active November 20, 2026 08:02
Hide the Nitro, Shop, and Quests tabs in Discord's DMs list with this Vencord QuickCSS!
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.images-dark > nav > ul > div > div > div:nth-child(3),
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.images-dark > div.sidebarList__5e434.sidebarListRounded__5e434 > nav > div.scroller__99e7c.thin_d125d2.scrollerBase_d125d2.fade_d125d2 > ul > div:nth-child(3),
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.images-dark > div.sidebarList__5e434.sidebarListRounded__5e434 > nav > div.scroller__99e7c.thin_d125d2.scrollerBase_d125d2.fade_d125d2 > ul > li:nth-child(4),
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div
⌂ 换网址