Skip to content

Instantly share code, notes, and snippets.

@fufexan
fufexan / macos_accel.py
Created September 12, 2024 20:18
macOS-like acceleration curve for libinput
#!/usr/bin/env python3
# macOS-like pointer acceleration for libinput
# Author: fufexan <mihai@fufexan.net>
# Uncomment matplotlib and the plot_curve definition and call to visualize the curve
# import matplotlib.pyplot as plt
import sys
import os

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.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 21, 2026 08:57
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active October 21, 2026 08:55 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Before this gist has been forked, AgentOak made original gist back in November 13th 2019 and it was last updated on May 5th 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17th September 2022. I joined to yt-dlp Discord server on 3rd April 2026 with my Discord username: martineesmaa.

Last updated: 11 October 2026

@passatgt
passatgt / eu-vat-validate-regex.php
Created April 7, 2025 19:37
Regex to validate EU vat numbers
<?php
$vat_number = 'HU12345678';
if(!preg_match('/^((AT)?U[0-9]{8}|(BE)?[0-9]{10}|(BG)?[0-9]{9,10}|(CY)?[0-9]{8}[A-Z]|(CZ)?[0-9]{8,10}|(DE)?[0-9]{9}|(DK)?[0-9]{8}|(EE)?[0-9]{9}|(EL|GR)?[0-9]{9}|(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]|(FI)?[0-9]{8}|(FR)?[0-9A-Z]{2}[0-9]{9}|(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})|(HU)?[0-9]{8}|(IE)?[0-9]S[0-9]{5}[A-Z]|(IT)?[0-9]{11}|(LT)?([0-9]{9}|[0-9]{12})|(LU)?[0-9]{8}|(LV)?[0-9]{11}|(MT)?[0-9]{8}|(NL)?[0-9]{9}B[0-9]{2}|(PL)?[0-9]{10}|(PT)?[0-9]{9}|(RO)?[0-9]{2,10}|(SE)?[0-9]{12}|(SI)?[0-9]{8}|(SK)?[0-9]{10})$/', $vat_number)) {
return array(
"valid" => false
);
}
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@Fluepke
Fluepke / Reference
Created October 20, 2026 16:29
C=US, O=eMudhra Inc, CN=EM OV TLS CA - G3C
https://xkcd.com/221/
@gmolveau
gmolveau / README.md
Created October 19, 2026 19:02
Check if plex installation is hacked #plex2shell

Is my Plex server hacked?

A one-file, read-only script (plex-check.sh) you can run on any server to check whether a Plex Media Server install shows signs of compromise via the Plex2Shell exploit chain and the malware dropped by it in the wild.

Background: what is Plex2Shell?

In October 2026, a chain of four Plex Media Server bugs was published with a working PoC (CVE-2026-96652, -96654, -96655, -96656). Chained together, they allow **unauthenticated

@silascutler
silascutler / gist:c7f04537a79ace89569f979d964af0f9
Last active October 21, 2026 08:49
PHP2Shell Censys Query (CVE-2026-109618 / CVE-2026-109619 )
host.services.software.product: "MediaWiki" or host.services.software.product: "Wordpress" or host.services.software.product: "phpBB" or host.services.software.product: "Magento" or host.services.software.product: "Laravel" or host.services.software.product: "Drupal" or host.services.software.product: "Symphony" or host.services.software.product = "whm"