Skip to content

Instantly share code, notes, and snippets.

@braindevices
braindevices / dnsmasq-gfwlist.py
Created May 31, 2017 17:58 — 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
@braindevices
braindevices / get_tushare_data.py
Created April 10, 2017 16:46 — forked from xgdgsc/get_tushare_data.py
get tushare data
# coding: utf-8
import tushare as ts
import pandas as pd
import pickle
stock_list = ts.get_stock_basics()
# In[ ]: