Skip to content

Instantly share code, notes, and snippets.

View liby's full-sized avatar
πŸŒ€
Working from Cosmos

Bryan Lee liby

πŸŒ€
Working from Cosmos
View GitHub Profile
@liby
liby / external_rules.sgmodule
Last active July 16, 2025 12:05
Surge Enterprise External Rules
#!name=External Rules
#!desc=Add rules without modifying the Entertprise's profile.
[General]
allow-wifi-access = true
http-listen = 0.0.0.0:6152
socks5-listen = 0.0.0.0:6153
[Rule]
RULE-SET,https://ruleset.skk.moe/List/non_ip/ai.conf,πŸ‡ΊπŸ‡Έ εŠžε…¬η½‘η«™
@liby
liby / Bryan Lee's GitHub Stats
Last active August 30, 2025 00:07
⚑️ History of GitHub
⭐ Total Stars: 5.7k
πŸ“ Total Commits: 4.9k
πŸš€ Total PRs: 317
🚧 Total Issues: 156
🀝 Contributed to: 28
@liby
liby / Bryan’s Recent Coding Languages
Last active September 1, 2025 00:18
πŸ’» Recent GitHub Activity Languages
Zig +651 / -394 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 52.04%
Gettext C… +355 / -35 β–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 19.42%
YAML +114 / -89 β–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 10.11%
Markdown +129 / -34 β–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8.12%
Shell +28 / -119 β–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.32%
Nix +22 / -18 β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.99%
JSON +6 / -6 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.60%
Swift +5 / -1 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.30%
Text +1 / -1 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.10%
@liby
liby / cfg-install
Last active February 27, 2022 18:19
Switch Homebrew to USTC Mirror
git clone --bare git@github.com:liby/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";