Skip to content

Instantly share code, notes, and snippets.

@nielslange
nielslange / wp-plugin-stats.js
Last active October 30, 2026 09:20
Fetch total downloads and installs of all WordPress plugins
let url = 'https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[fields][banners]=true&request[search]=SMNTCS';
let downloads = 0;
let installs = 0;
let plugins;
let plugin;
fetch( url )
.then( response => {
return response.json()
} )

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.

Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
# Dwarf Fortress Premium on Mac (Apple Silicon) — Full Setup Guide
**Tested on:** MacBook Pro M1 Pro, macOS Tahoe 26.3, GPTK 3.0
**Last updated:** March 2026
**Result:** Full game with audio, world generation, and gameplay working
The Steam Premium version of Dwarf Fortress has no native Mac build and the devs have cancelled macOS plans. This guide gets it running on Apple Silicon Macs using Apple's Game Porting Toolkit (GPTK) — no CrossOver, no Whisky (discontinued), no paid software needed.
---
@sheharyarn
sheharyarn / SimpleRVAdapter.java
Last active October 30, 2026 09:12
Simple Recycler View adapter (without XML layout)
/**
* SimpleRVAdapter to quickly get started with simple Lists in Recyclerview
*
* Usage:
*
* RecyclerView rv = (RecyclerView)findViewById(R.id.rv);
* rv.setLayoutManager(new LinearLayoutManager(getContext()));
* rv.setAdapter(new SimpleRVAdapter(new String[] {"1", "2", "3", "4", "5", "6", "7"}));
*
* @author Sheharyar Naseer
@flamerix-ai
flamerix-ai / README.md
Last active October 30, 2026 09:08
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Tested on Linux, Claude Code 2.1.257–2.1.312; macOS reported working by others (see Tested versions). The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model just to fill that agent's status line in the agents panel. no-agent-summary.js is a Bun --preload

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 30, 2026 09:07
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

@Hope-IT-Works
Hope-IT-Works / Enable-OpenSSHServer.ps1
Last active October 30, 2026 09:04
Self-elevating install-script for OpenSSH server on Windows
$EnableOpenSSHServerScriptblock = {
if((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)){
Write-Host -ForegroundColor Yellow "Installing OpenSSH Client..."
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Write-Host -ForegroundColor Yellow "Installed OpenSSH Client."
Write-Host -ForegroundColor Yellow "Installing OpenSSH Server..."
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Write-Host -ForegroundColor Yellow "Installed OpenSSH Server."