Skip to content

Instantly share code, notes, and snippets.

@warking
warking / dnsmasq.conf.add
Created October 22, 2014 12:59
mandarin china domains
server=/cn/114.114.114.114
server=/baidu.com/114.114.114.114
server=/hao123.com/114.114.114.114
server=/bdstatic.com/114.114.114.114
server=/bdimg.com/114.114.114.114
server=/iqiyi.com/114.114.114.114
server=/baifubao.com/114.114.114.114
server=/nuomi.com/114.114.114.114
server=/qianqian.com/114.114.114.114
server=/skycn.com/114.114.114.114
@warking
warking / Subscript for Toner Heads
Last active August 29, 2015 14:08
Toner Heads
Like was John Scully, John came from pepsi coca,
and they almost won't change their products once it retains ten years,
today they renew their product like new size of bottle
so if you are a product person, you could change the course that company very much.
so who influences the successful pepsi coca, the sales and marketing people
therefore they would once get promoted and we would run their company.
well, for pepsi coca that might be OK,
but it turns out the same thing can happen in technology companies when they get monopolies like IBM and Xerox.
If you are a product person at IBM or Xerox, so you make a better copy or better computer,
so what, when you have a monopoly market share, the company is not anymore successful,
@warking
warking / surge_proxy.conf
Last active December 2, 2015 05:27 — forked from jason5ng32/surge.conf
Surge Configs ( Both 2 files are needed )
#!PROXY-OVERRIDE:surge_rules.conf
// ADD YOUR PROXY BELOW, DON'T FORGET TO REMOVE # , THERE'RE 4 TYPES OF PROXIES, YOU HAVE TO PICK UP THE RIGHT ONE.
[Proxy]
# Proxy = http,$IP,$PORT,$USERNAME,$PASSWORD
# Proxy = https,$IP,$PORT,$USERNAME,$PASSWORD
# Proxy = socks,$IP,$PORT
# Proxy = custom,$IP,$PORT,$METHOR,$PASSWORD,$MODULE_URL
// YOU HAVE TO GET THE SHADOWSOCKS MODULE BEFORE USING SHADOWSOCKS PROXY, HERE'S ONE: https://dl.dropboxusercontent.com/u/760466/SSEncrypt.module
@warking
warking / install_linuxbrew_on_centos7.sh
Last active August 19, 2023 19:26
standalone linuxbrew setup script for CentOS 7
# Non-root account is recommended for this process
# centos-specific prepration
sudo yum -y update && sudo yum -y groupinstall 'Development Tools' && sudo yum -y install curl irb m4 ruby
# Sanitize the environment
PATH=~/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
unset LD_LIBRARY_PATH PKG_CONFIG_PATH
# install linuxbrew