Skip to content

Instantly share code, notes, and snippets.

View taogogo's full-sized avatar
❣️
Serial entrepreneur

taogogo taogogo

❣️
Serial entrepreneur
View GitHub Profile
@taogogo
taogogo / update-dnsmasq-from-gfwlist.py
Created January 15, 2018 11:32 — forked from rambolee/update-dnsmasq-from-gfwlist.py
升级 小米路由器3 可以ssh 可以 Shadowsocks [Tags]: 小米路由, 小米路由3, 小米路由器, 小米路由器3, ssh, shadowsocks
#!/usr/bin/env python
#coding=utf-8
#
# Generate a list of dnsmasq rules with ipset for gfwlist
#
# Copyright (C) 2014 http://www.shuyz.com
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules
import urllib2
import re
/*
* Copyright 2014 Ramon de C Valle
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*/
#include <stdio.h>