Skip to content

Instantly share code, notes, and snippets.

@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@aa65535
aa65535 / README.md
Last active June 23, 2018 16:04
OpenWrt ShadowSocks Traffic Redirection Rules

ss-rules

使用 ipset -R OR iptables-restore 添加规则

优先使用 ipset, 其在流量转发时匹配效率相对 iptables 要高

测试 ss-rulesignore.list 包含 4747 条 IP 的执行用时:

# time /usr/bin/ss-rules -c $CONFIG -i $IGNORE
@pv8
pv8 / fix-venv.sh
Last active September 1, 2022 03:33
Fix virtualenv symlinks after upgrading python with Homebrew and running brew cleanup
#!/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