Skip to content

Instantly share code, notes, and snippets.

@bitingsock
bitingsock / audio-dupe.lua
Last active December 1, 2026 21:58
Runs a child process to play a second audio stream. Synced through named pipe. Recommend using with [cycle-adevice](https://gist.github.com/bitingsock/ad58ee5da560ecb922fa4a867ac0ecfd) to change the output device of the parent process.
--New child with start with the current 'aid' and 'audio-device' of the parent
-- non-Windows environments require the use of the 'socat' package
local platform_is_windows = (package.config:sub(1, 1) == "\\")
local options = require 'mp.options'
local o = {
pipe_template = platform_is_windows and "\\\\.\\pipe\\mpvDupedAudio" or "~/mpvDupedAudio", --windows format
new_child_key = 'Ctrl+A', --Start a new child: 'Ctrl+Shift+a'
cycle_child_control_key = 'Ctrl+Alt+A', --Cycle child control: 'Ctrl+Shift+Alt+a'
cycle_child_aid_key = 'Ctrl+Alt+a', --Cycle 'aid' of child: 'Ctrl+Alt+a'
child_increase_volume_key = 'Ctrl+Alt+WHEEL_UP', --Change volume of child: 'Ctrl+Alt+wheel'
@vibeman247
vibeman247 / flop-agent-fix.md.
Last active December 1, 2026 21:58
Fix for FLOP testnet agents failing at "open submission outcome unknown" — includes the SDK patch, RPC configuration, working miner details, and exact commands to complete a successful session and settlement.
Fix a Flop testnet agent that cannot spend (session run dies at "open submission outcome unknown")
Paste this to your agent. It fixes the exact failure where `flop session run` opens a channel on-chain and then dies before sending the prompt, so no turn is served, no settlement happens, and no voucher is earned. Proven on 2026-12-01: the first settled testnet payment after this fix, no202 (qwen3-8b) replied, 1 verified turn, cooperative settlement on-chain (settle tx 0x569b97ebf713652e7b518d6090b94c769739cfa90397821853d331e7fb7e6b17, channel 0x9f58db82bfda99ffe8b6f6965039876eeedc16bc11c86a1ebd6860d61b5ed306). Since then ada-02 (qwen3-14b) has settled three more times, 0.35 then 0.8 then 0.8, earning 1.95 vouchers in total. The voucher balance is verifiable on-chain, see below.
The problem
1. `flop session run` computes the channel id before opening, submits the force-open extrinsic, and then waits for confirmation. Over a slow RPC the confirmation fails, and the SDK throws `DirectSessionError("open submiss
@Chester-Gillon
Chester-Gillon / Intel_Desktop_Board_DH67BL_BIOS_update.md
Last active December 1, 2026 21:53
Intel® Desktop Board DH67BL BIOS update

Using a Intel® Desktop Board DH67BL which has the BIOS version BLH6710H.86A.0125.2011.0705.1517, as checked when booted into Windows 10 using Legacy mode:

C:\Users\mr_halfword\Downloads\Windows_FWUpg_41xxx_2.11.14\x64>wmic bios get smbiosbiosversion
SMBIOSBIOSVersion
BLH6710H.86A.0125.2011.0705.1517

Intel have discontinued support for this board, and removed the BIOS updates on their website for the board.

On the wayback machine found BIOS Update [BLH6710H.86A] which has BIOS version 0163 from 10/23/2018

@cloneofsimo
cloneofsimo / prompt.md
Last active December 1, 2026 21:53
Neel's Paper Quality Analysis Prompt

Credit: How to write ML papers by Neel Nanda

You are chatbot that gives constructive analysis of the following work. Specifically, you care about the following criteria:

## Core Narrative Quality
- **Clear Claims**: Contains 1-3 specific, concrete claims that fit within a cohesive theme
- **Strong Motivation**: Clearly explains why readers should care ("so what?")

Manual Carrier Switching

How to switch the Orbic RC400L between carriers using only a root shell and AT commands. No custom firmware required — just the stock device with root access.

Overview

The Orbic RC400L ships with Verizon/Kajeet PDP context profiles baked in. When you insert a different carrier's SIM (T-Mobile, AT&T, etc.), the modem detects the new network but the old APN configurations remain, preventing a data connection. You must manually delete the old PDP contexts, configure new ones, update the QCMAP config file, and reboot.

Why AT+CGACT doesn't work: The stock QCMAP_ConnectionManager daemon owns the data call. Attempting AT+CGACT=1,<cid> returns +CME ERROR: unknown. Instead, we configure the APN at both the AT command level and in QCMAP's config file, then reboot to let QCMAP establish the connection cleanly.

@WarforgeTech
WarforgeTech / uefn-size-optimizer.md
Created December 1, 2026 18:57
UEFN Size Optimizer

name: uefn-size-optimizer description: >- Priority-ordered UEFN Download Size (400 MiB ceiling) and Memory Calculation (300 MiB ceiling) audit and optimization workflow for Fortnite islands. Use whenever a UEFN project approaches or exceeds 85%+ Project Size, fails Creator Portal Download Size validation (> 400 MiB), needs pre-launch size hygiene, or when importing external Fab/Marketplace/Blender art packs. Enforces zero-art-damage priority ordering (4K texture elimination, lossless format swaps, audio forensics, Normal/ORM caps before diffuse, excess LOD2+

@neilhawkins
neilhawkins / list-of-salutations-titles-honorifics.txt
Last active December 1, 2026 21:44
List of salutations, honorifics, titles, Mr, Mrs, Sir in plain text
Admiral
Air Chief Marshal
Air Commodore
Air Marshal
Air Vice Marshal
Alderman
Ambassador
Ambassador-at-Large
Archbishop
Archbishop Emeritus

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@JLIspace
JLIspace / gist:4cb9b6e72d22610f5387ebca1a486bdd
Created July 2, 2026 21:15
Automatically download all of your MRT images from Sectra UniView web-viewer (Select single MRT image, enable full resolution, reload page, open dev tools using F12, copy & paste this code into your javascript console, download of all images will start)
(async () => {
const urls = performance.getEntriesByType("resource")
.filter(r => r.name.includes("GetImageData.ashx"))
.map(r => r.name);
console.log("Total:", urls.length);
const sleep = (ms) => new Promise(r => setTimeout(r, ms));