Skip to content

Instantly share code, notes, and snippets.

@tiejunhu
tiejunhu / generate_dnsmasq_chinalist.sh
Created March 8, 2017 02:17
A sript which auto-downloads newest dnsmasq-china-list and add ipset rules to the config file.
#!/bin/ash
# Name: generate_dnsmasq_chinalist.sh
# Desription: A script which auto-download newest dnsmasq-china-list and add ipset rules to the config file.
# Version: 2017-01-30
# Author: Cokebar Chi
# Website: https://gist.github.com/cokebar
usage() {
cat <<-EOF
@tiejunhu
tiejunhu / whitelist.pac
Last active November 29, 2015 15:56 — forked from janlay/whitelist.pac
A white-list based PAC.
/*
* A white-list based PAC without regexp, by @janlay
* It's just simple and fast.
* Last update: Oct 20, 2015
* Special thanks to @Paveo
*/
function FindProxyForURL(url, host) {
// REPLACE PROXY WITH YOUR OWN'S
var PROXY = "SOCKS 127.0.0.1:1080;SOCKS5 127.0.0.1:1080;PROXY 127.0.0.1:8888";
var BLACKHOLE = "127.0.0.2";