Skip to content

Instantly share code, notes, and snippets.

@brentsimmons
brentsimmons / NSMenuItem+RSCore.swift
Created January 6, 2026 04:11
Disable all menu item images in a Mac app.
//
// NSMenuItem+RSCore.swift
// RSCore
//
// Created by Brent Simmons on 1/5/26.
//
#if os(macOS)
import AppKit
import ObjectiveC
@FelikZ
FelikZ / rgb-fix.sh
Last active June 15, 2026 07:00
Fix RGB Range Limit on MacOS
#!/usr/bin/env bash
# Script to force RGB Color Output on M1 and M2 based Macs for a selected display
# Function to display an error message and exit
function error_exit {
echo "Error: $1" >&2
exit 1
}
@wendimust
wendimust / flash-samdevices-on-linux.md
Created June 28, 2025 09:07
How to flash Samsung devices using a Linux machine

📱 Flash Samsung Firmware on Linux (Ubuntu 24.04+) Using Heimdall

A complete step-by-step guide to flashing Samsung firmware using Linux and the open-source Odin alternative: Heimdall.


🧰 Requirements

  • A Samsung smartphone or tablet
  • A Linux distro (tested on Ubuntu 24.04)
@asheroto
asheroto / README.md
Last active July 21, 2026 11:03
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does

@iamstoick
iamstoick / list-usb-devices.md
Created August 18, 2024 22:04
List the devices name connected to MacOS
$ ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*

Example ouput:

Apple[REDACTED]
USB 2.0 BILLBOARD
Apple[REDACTED]
@troykelly
troykelly / README.md
Last active July 29, 2026 14:28
Multi Screen Video Playback using ffplay

Stream.sh

stream.sh is a Bash script designed to stream multiple video sources to multiple screens using ffplay. This script ensures that each video stream is displayed on a specified monitor and restarts the stream if it fails. The script is optimized for real-time playback by using various ffplay options to reduce latency and handle frame drops effectively.

Features

  • Streams multiple video sources to multiple screens.
  • Ensures each stream is displayed on the specified monitor.
  • Restarts streams automatically if they fail.
  • Optimized for real-time playback with minimal latency.
@RC128tech
RC128tech / 01 - UPDD Driver Enhancer
Last active October 14, 2025 05:57
UPDD macOS Touch Driver Enhancer
Hello all UPDD users,
I found a better solution to reinitialize the UPDD daemon without non-macOS tools.
It is tested with the UPDD version 6.00.771 on Mavericks and Mojave.
Before installing the driver, I set the date to 01-01-2038, the UNIX End-Of-The-World-Date.
I'm not sure if this made any difference, but I did it.
This is the shell script to use:
@skrimix
skrimix / pixel_kernelsu_patch.sh
Last active July 26, 2026 10:07
boot.img repack script for KernelSU. Supports extracting boot.img from factory and OTA images
#!/bin/bash
set -e
# This script creates a patched boot.img with KernelSU GKI kernel and cmdline tweaks
SCRIPT_PATH="$(dirname "$(realpath -s "$0")")"
MAGISKBOOT="$SCRIPT_PATH"/magiskboot
MAGISK_VER="v26.1" # used for downloading magiskboot, newer versions print "unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)" warning(?)
ANYKERNEL_FILE_NAME="CHANGE_ME" # for downloading from the latest KernelSU github release, e.g. "AnyKernel3-android13-5.10.157_2023-03.zip"

During the past days, this great article by Sam Pruden has been making the rounds around the gamedev community. While the article provides an in-depth analysis, its a bit easy to miss the point and exert the wrong conclusions from it. As such, and in many cases, users unfamiliar with Godot internals have used it points such as following:

  • Godot C# support is inefficient
  • Godot API and binding system is designed around GDScript
  • Godot is not production ready

In this brief article, I will shed a bit more light about how the Godot binding system works and some detail on the Godot