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',
@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 April 22, 2026 11:48
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",
@garg-aayush
garg-aayush / setup-personal-gpu-server.md
Created June 30, 2024 15:35
Step-by-Step Guide to setup your own personal GPU server

Setting Up Your Personal GPU Server: A Step-by-Step Guide

I've been using a GPU workstation with an RTX 4090 for almost a year now, and it's been one of the best decisions I've made. With a personal GPU server, you no longer need to rely on cloud-based GPU instances from services like RunPod or Vast.ai every time you want to run a job or try new models. The best part? No stress about recurring GPU instance costs! :-)

However, I rarely work directly on my workstation. Instead, I prefer the flexibility of accessing the GPU remotely using my MacBook, whether I'm working from different locations within my home, from a co-working space, or a cozy cafe in another part of town.

In this blog, I will walk you through the steps to configure a personal GPU Ubuntu server.

For this guide, I assume you already have a workstation running Ubuntu with a GPU and it is connected to your local network