Skip to content

Instantly share code, notes, and snippets.

@laleck
laleck / Bose_lifestyle_20_bluetooth.md
Last active March 17, 2026 18:01
Guide to installing a Bluetooth receiver in a Bose Lifestyle 20 Music Center

Replacing the Lifestyle 20 CD Changer with a Bluetooth Receiver

ELECTRICITY IS DANGEROUS. BE SMART!

The Bose Lifestyle 20 is a ubiquitous piece of hardware. This system, manufactured near the very end of the 20th century, is a testament to cool design and excellent sound (as far as this non-audiophile can judge). About 20 years after their manufacture dates, these units have two common issues: dim to dead display and faulty CD changer. Swapping 5 capacitors fixes the display issue but fixing the CD changer has befuddled me. So, inspired by some clever eBay sellers who had already capitalized on the idea, I installed a Bluetooth receiver in place of the CD changer. I didn't purchase and reverse engineer their designs, but it may have been a better use of time had I done so...

Notes

Some notes on how this modification will affect the system:

  • The Bluetooth adapter will always be on. This draws very little current, espcially when idle.
  • BT audi
@hl2guide
hl2guide / Search_Everything_Cheatsheet.md
Last active March 17, 2026 17:58
Search Everything Cheatsheet

Search Everything Cheatsheet 📒

Search Everything is a fast, powerful, and effective search tool for Windows.

This cheatsheet acts as a quick start reference to get more out of Search Everything.

It compliments the official documentation.

Searching 🔍

@Cr4sh
Cr4sh / WoW64_call.cpp
Created May 22, 2014 19:33
WoW64 Heaven's Gate
#include "stdafx.h"
#define DB(_val_) __asm __emit (_val_)
#define INVALID_SYSCALL (DWORD)(-1)
// code selectors
#define CS_32 0x23
#define CS_64 0x33
@austinsonger
austinsonger / AS-Ultimate-Feed.opml
Last active March 17, 2026 17:50
Austin Songer Ultimate RSS Feed (Cyber Security, Vulnerabilities, Threat Intel, and more)
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Austin Songer Ultimate Feed</title>
</head>
<body>
<outline text="InfoSec - Firewall + Network" title="InfoSec - Firewall + Network">
<outline type="rss" text="Keeping It Classless" title="Keeping It Classless" xmlUrl="http://feeds.feedburner.com/keepingitclassless" htmlUrl="http://keepingitclassless.net/"/>
<outline type="rss" text="EtherealMind - Human Infrastructure" title="EtherealMind - Human Infrastructure" xmlUrl="http://feeds.feedburner.com/etherealmind" htmlUrl="http://etherealmind.com"/>
@Dreaming381
Dreaming381 / Your ECS Probably Still Sucks Part 1.md
Last active March 17, 2026 17:49
Your ECS Probably Still Sucks - Practical Tips for a Next Level ECS

Your ECS Probably Still Sucks: Part 1 – Memory Matters

This article was first written during the Unity Fee-asco of 2023. As such, many Unity ECS community members were seeking alternative high-performance solutions, and were asking me about potential places to migrate some technology I have developed.

Unfortunately, most of the ECS solutions were inadequate for facilitating the technology, yet it hasn’t been easy to explain why. That’s why this series exists. I’ll explain several ECS concepts ideas that are often overlooked in

"""
Schema-Guided Reasoning (SGR) Demo with OpenAI
This Python code demonstrates Schema-Guided Reasoning (SGR) with OpenAI. It:
- Implements a business agent capable of planning and reasoning
- Implements tool calling using only SGR and simple dispatch
- Uses a simple (inexpensive) non-reasoning model for that
To give this agent something to work with, we ask it to help with running
a small business - selling courses to help achieve AGI faster.
@CodyJasonBennett
CodyJasonBennett / index.ts
Last active March 17, 2026 17:49
WebGL 2 Compute via Transform Feedback
/**
* Matches against GLSL shader outputs.
*/
const VARYING_REGEX = /[^\w](?:varying|out)\s+\w+\s+(\w+)\s*;/g
/**
* Adds line numbers to a string with an optional starting offset.
*/
const lineNumbers = (source: string, offset = 0): string => source.replace(/^/gm, () => `${offset++}:`)
@cbsmith
cbsmith / random_selection.cpp
Last active March 17, 2026 17:48
Hopefully serves as a reference implementation on how to do random selection of an element from a container.
// -*- compile-command: "clang++ -ggdb -o random_selection -std=c++0x -stdlib=libc++ random_selection.cpp" -*-
//Reference implementation for doing random number selection from a container.
//Kept for posterity and because I made a surprising number of subtle mistakes on my first attempt.
#include <random>
#include <iterator>
template <typename RandomGenerator = std::default_random_engine>
struct random_selector
{
//On most platforms, you probably want to use std::random_device("/dev/urandom")()
site:*/sign-in
site:*/account/login
site:*/forum/ucp.php?mode=login
inurl:memberlist.php?mode=viewprofile
intitle:"EdgeOS" intext:"Please login"
inurl:user_login.php
intitle:"Web Management Login"
site:*/users/login_form
site:*/access/unauthenticated
site:account.*.*/login