Skip to content

Instantly share code, notes, and snippets.

@etng
etng / surge.conf
Created October 14, 2015 06:45 — forked from soffchen/surge.conf
surge.conf
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
Proxy = custom
[Rule]
@etng
etng / Fuckgfw.conf
Created October 12, 2015 05:01 — forked from jason5ng32/surge.conf
Surge Config
[General]
loglevel = notify
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
[Proxy]
// ADD YOUR PROXY HERE, DON'T FORGET TO REMOVE #
# Proxy = http,$IP,$PORT,$USERNAME,$PASSWORD
# Proxy = https,$IP,$PORT,$USERNAME,$PASSWORD
@etng
etng / README.md
Last active July 26, 2021 13:42 — forked from xeoncross/README.md

Simple Developer Setup

Building a cross-platform, unit-tested, continuous-integration, continu͞ou̵s deployment, yeoman͜, grunt/gulp, ionic, ҉angular material, go, sass/less, n̷ode͜js͢, ́so̵cket͏i͘o, n҉i̧g͠htm̶are͡.!?̷҉?͏̷̧̛͜͟

I can help.

Here, use vagrant + this script and have a working virtual ubuntu box totally setup in minutes.

git clone https://gist.github.com/3b8ed1d094707bc0dff8.git ./YOUR_PATH_HERE
vagrant up
@etng
etng / adbwifi.sh
Last active July 26, 2021 13:42 — forked from stormzhang/adbwifi.sh
#!/bin/bash
#Modify this with your IP range
MY_IP_RANGE="192\.168\.1"
#You usually wouldn't have to modify this
PORT_BASE=5555
#List the devices on the screen for your viewing pleasure
adb devices
# inspired by
# Master NGINX - Dimitri Aivaliotis
# http://www.amazon.com/Mastering-NGINX-Dimitri-Aivaliotis-ebook/dp/B00B90PJR4
# Chapter 8 - Switching binaries at runtime
# We get the pid of the 'to be replaced' nginx master process
export nginx_old_pid=`cat /var/run/nginx.pid`
# we send an USR2 signal to tell 'to be replaced' process
# to start a new master process.
#
# Slightly tighter CORS config for nginx
#
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs
#
# Despite the W3C guidance suggesting that a list of origins can be passed as part of
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox)
# don't seem to play nicely with this.
#

OpenWrt BarrierBreaker 14.07-rc3 手记

1 外置存储 - ExtRoot

1.1 USB HDD 分区

安装依赖和工具包:

HHVM vs PHP-FPM

〇 基准性能测试

HHVM 会篡改 phpinfo() 函数输出结果,因此使用最基本的 echo 'Hello World!'; 进行测试。

0.1 测试环境

/etc/cron.d 攻略

为什么不用 crontab

crontab 是日常使用最为频繁地定时器工具。它将每个用户的所有定时任务统一记录、统一管理。

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。