Skip to content

Instantly share code, notes, and snippets.

My env

  • Bambu Lab P1S
    • Bound to the cloud

If not bound to the cloud, a Local MQTT server is a good choice.

Steps

  1. Login MakerWorld
  2. Open the dev-tools and move to Application > Cookies > https://makerworld.com
  3. Memo your token string as ACCESS_TOKEN

Tired of seeing “Ask Siri” on every menu? Here's how to disable it.

In macOS 27, after enabling Siri AI, all context menus include a persistent “Ask Siri” context menu item. Turns out you can actually disable it without turning off Siri AI.

To disable, run the following commands in the Terminal app:

codes=(soft apwn exit loca lock logo rlgo rcnt rrst rest rsdn shut slep spro syss)
args=(-int 0)
@danbst
danbst / README.md
Last active November 3, 2026 17:44
Matrix multiplication in logarithmic space. Incoming matrices are logs of their values, result values are logs of real values. The benefit is that multiplication is not used

Matrix multiplication without multiplication

The basic idea is to transform dot product into log form:

log(a.b) = log(a1*b1 + a2*b2 + ... + an*bn) 
  = log(exp(log a1+log b1) + exp(log a2+log b2) + ... + exp(log an+log bn))

and then apply something like Horner's method, but for exp-s, so result looks like (I'll simplify log a1 to la1, log a2 to la2, ...):

@praneeth-katuri
praneeth-katuri / git-ssh-setup-windows.md
Created May 20, 2025 03:35
Complete guide to setup Git using SSH on Windows

🛠 Complete Guide: Set Up Git with SSH on Windows

✅ 1. Generate an SSH Key (ED25519 Recommended)

Open PowerShell and run:

ssh-keygen -t ed25519 -C "your_email@example.com"
@LvlyBot
LvlyBot / icm-guide.md
Created April 16, 2026 07:29
Interpreted Context Methodology (ICM): A Complete Guide — Folder-based architecture for AI agent context management

Interpreted Context Methodology (ICM): A Complete Guide

What Is ICM?

The Interpreted Context Methodology (ICM) is a folder-based architecture for managing AI agent context. Instead of loading an entire codebase or writing monolithic prompt files, ICM organizes agent work into workspaces and stages — each with explicit declarations of what to load, what to skip, and exactly what the agent should do.

The core insight: AI agents perform better when they receive narrow, relevant context rather than broad, general context. ICM makes this narrowing systematic and repeatable.

Origin

@paulirish
paulirish / what-forces-layout.md
Last active November 3, 2026 17:35
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@MotherSphere
MotherSphere / nikke-pc-launcher-compromise.md
Last active November 3, 2026 18:40
NIKKE PC launcher compromise (Nov 2026): Level Infinite CDN files modified, remote-control agent, indicators

NIKKE PC launcher compromise (November 2026)

Caution

From 2026-09-27 to 2026-11-03, two official JavaScript files on Level Infinite's CDN contained attacker code. The NIKKE PC launcher loads these files. From around Nov 2-3, opening the launcher could install a remote-control agent: while the launcher was open, the attacker could run any command on your machine, read any file and take screenshots.

Update, 2026-11-03 17:35 GMT: Level Infinite replaced both files at 17:04 and 17:21 GMT. The loader code is gone. This does not undo anything on machines that were already infected, and the old file may still be in your launcher's cache. Do not open the NIKKE PC launcher until Level Infinite confirms the fix, and clear its cache before you do.

This report comes from one infected machine. The payload was analyzed statically and never executed. Everything below was checked against the downloaded files, the launcher's logs and caches, and the live servers.

Last updated: 2026-11-03, 18:45 GMT

@rex
rex / esp32-capabilities-and-pinouts.md
Last active November 3, 2026 17:27
ESP32 Capabilities and Pinouts

ESP32 Audio & Peripherals Quickstart — with Pinout & Mermaid Diagram

Author: Bex (for Pierce)
Scope: How to generate real audio (polyphony) on ESP32, what “peripherals” are, and a practical overview of ESP32 (WROOM-32 class) pins & capabilities. Includes a ready-to-run chord synth and a Mermaid pinout diagram.

⚠️ Board variance note: The mapping below targets the common ESP32-WROOM-32 / DevKit v1 family. Some boards re-label or reserve certain pins (e.g., PSRAM modules, onboard flash). Always confirm with your module’s schematic/datasheet.


1) Real Polyphony on ESP32 (Why DAC beats PWM)