Skip to content

Instantly share code, notes, and snippets.

@leechannl
leechannl / dnsmasq-gfwlist.py
Created February 9, 2017 03:00 — forked from lanceliao/dnsmasq-gfwlist.py
将gfwlist转换成带ipset的dnsmasq规则,适用于OpenWrt智能上网
#!/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
@leechannl
leechannl / installation.md
Last active June 29, 2017 02:37 — forked from guillaumevincent/installation.md
install PyQt5 on Mac OS X 10.9 and use python 3.4 on a virtualenv.

Guide to install PyQt5 on Mac OS X with python 3.5 virtualenv

Description

A simple guide to install PyQt5 on Mac OS X 10.11 and use python 3.5 on a virtualenv.

Requirements

  • xcode latest
  • python 3.5.1
  • Qt libraries 5.6.0