Skip to content

Instantly share code, notes, and snippets.

View hanfeisun's full-sized avatar
🏕️

Hanfei Sun hanfeisun

🏕️
View GitHub Profile
@hanfeisun
hanfeisun / crack_xx.sh
Last active December 27, 2015 15:49 — forked from anonymous/gist:7350812
#!/bin/bash
sudo date 03050001
# Replace the following line with any application you need to run
open /Applications/Merriam-Webster\ 4.0/Merriam-Webster\ Dictionary.app
# sleep 60
# Set back to the current time using apple service (network needed)
sudo ntpdate -u time.apple.com
/*
* A white-list based PAC without regexp, by @janlay
* It's just simple and fast.
* Last update: Dec 9, 2013
* Special thanks to @Paveo
*/
function FindProxyForURL(url, host) {
var PROXY = "PROXY 127.0.0.1:8800;SOCKS 127.0.0.1:8801";
var DEFAULT = "DIRECT";