Skip to content

Instantly share code, notes, and snippets.

View JustinBrow's full-sized avatar

Justin JustinBrow

View GitHub Profile
@grenkoca
grenkoca / copy-fail-CVE-2026-31431__unminimized.py
Created April 29, 2026 23:47
CVE-2026-31431 (copy-fail) unminimized
#!/usr/bin/env python3
import os
import zlib
import socket
def d(x):
return bytes.fromhex(x)

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.

@PanosGreg
PanosGreg / Resolve-Error.ps1
Created March 5, 2026 14:51
Go through an Error Record recursively and get all exceptions and messages
function Resolve-Error {
[OutputType([object],[string])] # <-- by default [object], and [string] with AsString
[CmdletBinding()]
param (
[Parameter(ValueFromPipeline, Mandatory)]
[ValidateNotNull()]
$ErrorRecord,
[switch]$AsString
)
@SturmB
SturmB / discord-alternatives-2026.md
Last active March 3, 2026 07:18
Discord Alternatives Comparison (Feb 2026) — Age verification exodus edition

Discord Alternatives (February 2026)

A comparison of platforms people are migrating to after Discord's mandatory age verification announcement.

Why the Exodus

Discord announced (Feb 9, 2026) that all users will default to "teen-by-default" settings starting March 2026. Full access requires age verification via facial age estimation or government ID. Trust is low because a Sep 2025 vendor breach exposed ~70,000 government ID photos, and the new verification vendor (Persona) is indirectly funded by Peter Thiel / Palantir.

Searches for "Discord alternatives" spiked 10,000% overnight.

@PanosGreg
PanosGreg / ServiceCertificate.ps1
Created October 20, 2025 07:33
Functions to Get/Delete/Import a certificate from/on a windows service
# This file contains the following functions:
# Import-ServiceCertificate - Import a PFX certificate to a service cert store
# Get-ServiceCertificate - Get the certificates of a service
# Remove-ServiceCertificate - Delete a certificate from a service
#Requires -RunAsAdministrator
function Import-ServiceCertificate {
@ericlaw1979
ericlaw1979 / Single.js
Last active October 21, 2025 19:04
SingleBrowserMode button for Fiddler.
// Rules > Customize Rules, place this just inside the HANDLERS class...
// Add a button to Fiddler's UI for "Single Browser Mode", where only one browser window will
// send its traffic to Fiddler.
public static BindUIButton("SingleBrowserMode \uD83D\uDC40")
function LaunchSingleInstance() {
// Tell the system we're not the proxy anymore
FiddlerApplication.UI.actDetachProxy();
// Launch a single browser instance pointed directly at Fiddler.
System.Diagnostics.Process.Start('msedge.exe',

How to reinstall Windows remotely with Tailscale VPN

Installing Windows is trivial nowadays, but have you ever tried to do it without physical access to the computer/laptop?

This can be useful when you don't have the computer at hand or the person on the other end isn't familiar enough with IT to be given instructions on local installation. Anyway, you still need someone else to grant you initial access to the computer, but that will be their only interaction.

Warning

This tutorial is provided for informational and educational purposes only. Following these instructions may involve risks, including but not limited to system malfunctions, data loss, security vulnerabilities or other unintended consequences. I make no guarantees about the accuracy, reliability, or safety of the information provided. By using this tutorial, you acknowledge that you do so at your own risk and assume full responsibility for any issues, damages, or losses that may occur. Additionally, I am not liable for the use, misu

@ThatRandomToast
ThatRandomToast / Windows Government Edition official sources.md
Created December 9, 2024 17:33
Windows China Government Edition (Enterprise G) official sources

Windows China Government Edition (Enterprise G) official sources

How to access

DISCLAIMER: These steps CAN'T help you activate the China Government Edition (Enterprise G).

The official ISOs for the China Government Edition (Enterprise G) is (probably) not hosted on Microsoft's sources that you can access to download normal Windows or normal Enterprise editions, but in CMIT/CMGOS (which Microsoft collaborates with to develop this edition). Here's how to get the ISOs from official sources:

  1. Visit this site: https://download.cmgos.com/oem/login
  2. Enter the following:
    • Left text box (请输入SN号或设备编号): 0101111011111 (make sure that this has no spaces)
    • Right text box (请输入右侧验证码): (enter what's show in the blue box, which generates different codes on each load of the page (a type of CAPTCHA))
  3. Click 验证 (verify).
@Roger-WIN
Roger-WIN / IntegratedServicesRegionPolicySet.json
Last active July 4, 2026 02:31
Windows 11 Version 25H2, C:\Windows\System32\IntegratedServicesRegionPolicySet.json
{
"$schema": "schemas/IntegratedServicesRegionPolicySet.Schema.1.1.0.json",
"version": "1.0",
"policies": [
{
"$comment": "Edge is uninstallable.",
"guid": "{1bca278a-5d11-4acf-ad2f-f9ab6d7f93a6}",
"defaultState": "disabled",
"conditions": {
"region": {
@mmotti
mmotti / Set-DarkTheme.ps1
Last active June 1, 2026 04:29
Set Windows 11 to use Dark Mode. Particularly useful as part of a logon script for Windows Sandbox.
$strRegJson = @"
[
{
"RegPath": "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes",
"Name": "CurrentTheme",
"Type": "STRING",
"Value": "C:\\Windows\\resources\\Themes\\dark.theme"
},
{
"RegPath": "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\HighContrast",