Skip to content

Instantly share code, notes, and snippets.

View aaronhoogstraten's full-sized avatar

Aaron Hoogstraten aaronhoogstraten

View GitHub Profile
@kmobs
kmobs / USBIP Guide.md
Last active July 19, 2026 22:46
USB/IP for passing a Steam Controller 2 between Windows devices

Guide: Passing the Steam Controller 2 to a Sunshine Host via USB/IP (Windows to Windows)

I recently managed to get my Steam Controller seamlessly passed back and forth between my Windows Moonlight client and my Windows Sunshine host. While this is arguably easier with a Linux client, I don't want my Moonlight PC running Linux right now.

Why not VirtualHere? I have no problem paying $50 for good software, but I don't like their licensing practices—specifically, the fact that the license isn't easily transferable between devices.

If you want a free, network-based USB passthrough solution for the SC2, here is my process using usbip-win2, usbipd-win, and OpenSSH.

Prerequisites

#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
@bearlikelion
bearlikelion / remove-script.patch
Last active May 31, 2026 22:24
Ignore godot's --script command line argument
diff --git a/main/main.cpp b/main/main.cpp
index 1c7955f089..8a37d67eb7 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -3700,7 +3700,8 @@ int Main::start() {
else if (E->next()) {
bool parsed_pair = true;
if (E->get() == "-s" || E->get() == "--script") {
- script = E->next()->get();
+ script = "";
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@staltz
staltz / introrx.md
Last active July 19, 2026 16:25
The introduction to Reactive Programming you've been missing