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 February 19, 2025 09:48
Surge Enterprise External Rules
#!name=External Rules
#!desc=Add rules without modifying the Entertprise's profile.
[Rule]
RULE-SET,https://ruleset.skk.moe/List/non_ip/ai.conf,Vendor 美国
DOMAIN-SUFFIX,cursor.com,Vendor 美国
DOMAIN-SUFFIX,cursor.sh,Vendor 美国
@liby
liby / Bryan Lee's GitHub Stats
Last active March 13, 2025 00:08
⚡️ History of GitHub
⭐ Total Stars: 5.6k
📝 Total Commits: 4.1k
🚀 Total PRs: 278
🚧 Total Issues: 138
🤝 Contributed to: 28
@liby
liby / Bryan’s Recent Coding Languages
Last active March 13, 2025 00:14
💻 Recent GitHub Activity Languages
Markdown +239 / -8 ███████▊░░░░░░░░░░ 40.89%
Shell +101 / -78 █████▊░░░░░░░░░░░░ 29.64%
Rust +63 / -18 ██▊░░░░░░░░░░░░░░░ 13.41%
RON +0 / -40 █▊░░░░░░░░░░░░░░░░ 6.62%
JSON +35 / -5 █▊░░░░░░░░░░░░░░░░ 6.62%
TypeScript +6 / -7 ▊░░░░░░░░░░░░░░░░░ 2.15%
TOML +2 / -2 ░░░░░░░░░░░░░░░░░░ 0.66%
@liby
liby / cfg-install
Last active February 27, 2022 18:19
Switch Homebrew to USTC Mirror
git clone --bare [email protected]: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.";