Skip to content

Instantly share code, notes, and snippets.

View Kaitiz's full-sized avatar
💭
Nothing in your eyes...

Long Çhïvaš Kaitiz

💭
Nothing in your eyes...
View GitHub Profile
@Kaitiz
Kaitiz / treo-fb.conf
Last active February 23, 2024 09:49
treo-fb.conf
# Shadowrocket: 2024-01-25 18:26:34
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com
tun-excluded-routes = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32, 239.255.255.250/32
dns-server = system
fallback-dns-server = system
ipv6 = true
prefer-ipv6 = false
dns-fallback-system = false
0.0.0.0 iprofiles.apple.com
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 deviceenrollment.apple.com
0.0.0.0 gdmf.apple.com
0.0.0.0 iprofiles.apple.com
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 deviceenrollment.apple.com
#!/usr/bin/env bash
###############################################################################
# Tweak for Apple Silicon
###############################################################################
CURRENT_USER="${SUDO_USER:-$(whoami)}"
CURRENT_HOME="$(dscl . -read /Users/"$CURRENT_USER" NFSHomeDirectory | awk '{print $2}')"
echo "Current user: $CURRENT_USER"
@Kaitiz
Kaitiz / kaitiz.sh
Last active September 5, 2025 23:21
MacOS Software Installer
# bash <(curl -L https://gist.githubusercontent.com/Kaitiz/707c5fc5e86f6cc0e9503f1e76702a0a/raw/5b4e20b43b841bce34622a0308c3bd8d74ac696e/kaitiz.sh)
sudo profiles remove -all
sudo spctl --master-disable
sudo softwareupdate --install-rosetta
###############################################################################
# Tweak #
###############################################################################