Skip to content

Instantly share code, notes, and snippets.

View JustinBrow's full-sized avatar

Justin JustinBrow

View GitHub Profile
@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',
@Roger-WIN
Roger-WIN / IntegratedServicesRegionPolicySet.json
Last active January 31, 2026 06:53
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 October 9, 2025 20:06
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

@clod81
clod81 / encrypt.cs
Created January 21, 2024 21:44
C# DPAPI Example Usage
using System;
using System.Security.Cryptography;
using System.Text;
namespace Encrypt1
{
internal class Program
{
readonly static byte[] entropy = {}; //the entropy
@0xEva
0xEva / IDA Pro lumen.abda.nl public Lumina server.md
Last active January 10, 2026 08:05
Setting up IDA Pro to use lumen.abda.nl public Lumina server

Compiling socat on Cygwin

  1. Get a copy of socat source code here http://www.dest-unreach.org/socat/
  2. Make sure to install gcc-core, libssl-devel, make
  3. In your Cygwin terminal, run ./configure --enable-openssl-base --enable-openssl-method
  4. make optionally make install

Set up IDA Pro to use lumen.abda.nl public Lumina server

  1. Get a copy of lumen.abda.nl's certificate here https://abda.nl/lumen/hexrays.crt
  2. Change PATH_TO_IDA in ida_abda.nl_lumen.bat then run it
  3. Go to Options -> General -> Lumina, set server addr to 127.0.0.1, port 1234, Username guest, Password guest
@amigus
amigus / ByteCalculationFunctions.ps1
Last active November 26, 2024 21:11
Byte Calculation Functions; use: Invoke-Expression (&{curl -Ls https://mig.us/bcfps1 | Out-String}); (44040192 | bytesfromk | bytestogigs)
function ConvertFrom-BytesByFactor {
[CmdletBinding()]
param(
[Parameter(Mandatory)][int]$Factor,
[Parameter(Mandatory, ValueFromPipeline)][Int64]$Amount
)
process {
Write-Debug ("Rounding the result of $Amount * 1024 ^ $Factor")
[Convert]::ToInt64([Math]::Round($Amount * [Math]::Pow(1024, $Factor)))
}