Skip to content

Instantly share code, notes, and snippets.

@b0gdanw
b0gdanw / gist:07e78df8c6be60c379a5f7816d1d353b
Created May 7, 2026 19:04
Get_Rosetta_links_from_Apple.txt
#Get Rosetta links for all macOS builds
curl -sfL "https://swscan.apple.com/content/catalogs/others/index-rosettaupdateauto-1.sucatalog" | plutil -p - | awk -F'"' '/"BuildVersion" =>/ {build=$4} /"URL" => ".*RosettaUpdateAuto[.]pkg"/ && build != "" {print build; print $4 ORS; build=""}'
#Get Rosetta for your macOS build
curl -sfL "https://swscan.apple.com/content/catalogs/others/index-rosettaupdateauto-1.sucatalog" | plutil -p - | awk -F'"' '/"BuildVersion" =>/ {build=$4} /"URL" => ".*RosettaUpdateAuto[.]pkg"/ && build != "" {print build; print $4 ORS; build=""}' | grep -A 1 "$(sw_vers -buildVersion)"
@adamamyl
adamamyl / macos26-breaks-custom-dns.md
Last active May 27, 2026 19:24
Bug Report: macOS 26 breaks /etc/resolver/ supplemental DNS for custom TLDs

Ah, the joys of waking up to find the Mac's done an overnight upgrade… and erm, suddenly things stop working. Thankfully, me and Claude managed to work out what the fuck is going on… I'm sharing here, as well as having raised in on https://feedbackassistant.apple.com/feedback/22280434 (that seems to need a login?).

Bug Report: macOS 26 breaks /etc/resolver/ supplemental DNS for custom TLDs

Product: macOS 26.3.1 (Darwin 25.3.0, Build 25D771280a) Component: Networking → DNS / mDNSResponder Regression from: macOS 25.x 26.3.0 (working immediately prior to overnight update)


@FelikZ
FelikZ / rgb-fix.sh
Last active May 22, 2026 08:46
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
}
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active May 30, 2026 21:39
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@b0gdanw
b0gdanw / Disable-Tahoe-Bloatware.sh
Last active June 7, 2026 11:49
Disable Tahoe Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13), macOS Sonoma (14), macOS Sequoia (15) and macOS Tahoe (26)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot. From Terminal : sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
/*
This is a productivity enhancer plus some quality-of-life features that takes care of tedious tasks for you, saving time for what matters. Click on the tray icon to view hotkey info.
You'll find an embedded INI at the bottom of this script. However, you have to follow these two steps before you can run this script:
Download and unzip archive in `Lib` folder: https://github.com/thqby/winrt.ahk
Download raw file into `Lib` folder: https://github.com/Descolada/UIA-v2/blob/main/Lib/UIA.ahk
********** EIGHT-HOTKEY REMOTE **********
Multi- and single-function hotkeys.
TIP: change the `Run` setting to `Maximize` in the properties wnd of the Paint shortcut (b/c the snip feature can open Paint in a small wnd, which will be remembered by the OS).
And go to `Settings > System > Focus assist` to turn off all `Automatic rules`, so that TrayTip notification banners can also be shown on the desktop wnd for example.
@zudsniper
zudsniper / MacOS.md
Last active September 29, 2025 16:12
Make MacOS better

introduction

I like MacOS. It has its flaws, but overall, as a productivity operating system, especially when paired with Apple's ARM chips, nothing really compares. However, there are a few things I find I need to do to get it just right. These are those things. Take the ones you value, leave the rest.

the missing package manager: homebrew

macos shouldve come with a package manager, but for some reason, doesn't -- so the community made one called Homebrew. Go to https://brew.sh, and copy the 1-liner installation script, then paste that into Terminal, type in your password once or twice, download the xCode developer tools, and eventually you'll be good to go. The following all use brew, the cli tool.

Done? OK, let's continue.


@mariotaku
mariotaku / README.md
Last active May 28, 2026 12:56
Install tailscale on webOS TV

Usage

  1. Have your TV rooted
  2. Open Terminal with SSH client or dev-manager-desktop
  3. Run curl -fsSL https://gist.githubusercontent.com/mariotaku/f7228c5459fc7ad2172a2b69dd51a4eb/raw/webosbrew-install-tailscale.sh | sh and wait for it to finish
@starkayc
starkayc / Release WAN IP on UniFi Cloud Gateway Ultra.md
Created March 26, 2025 12:58
Release WAN IP on UniFi Cloud Gateway Ultra

Enable SSH on Cloud Gateway Ultra

  1. Head to Settings > Control Plane > Console.
  2. Then under Advanded enable SSH and input a password.

Login to Cloud Gateway Ultra

  1. The username is root and the password is the one you set.
  2. Find the PID by using pidof udhcpc.
  3. Once you found the PID excute the command /bin/kill -SIGUSR2 PID which will kill the process.
  4. Verify that the interface no longer has an ip address using ip addr.
  5. Now reboot the router using reboot now.