使用 ipset -R OR iptables-restore 添加规则
优先使用 ipset, 其在流量转发时匹配效率相对 iptables 要高
测试 ss-rules 在 ignore.list 包含 4747 条 IP 的执行用时:
# time /usr/bin/ss-rules -c $CONFIG -i $IGNORE
| #!/usr/bin/env bash | |
| # | |
| # Fix virtualenv symlinks after upgrading python with Homebrew and then running | |
| # `cleanup`. | |
| # | |
| # After upgrading Python using Homebrew and then running `brew cleanup` one can | |
| # get this message while trying to run python: | |
| # dyld: Library not loaded: @executable_path/../.Python | |
| # Referenced from: /Users/pablo/.venv/my-app/bin/python | |
| # Reason: image not found |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)