View update_chinadns.bash
if curl -f '' -o /tmp/chinaip.list; then
cat /tmp/chinaip.list | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /tmp/chinadns_chnroute.txt
if [[ $(wc -l </tmp/chinadns_chnroute.txt) -ge 100 ]]; then
echo '' >> /tmp/chinadns_chnroute.txt
echo '' >> /tmp/chinadns_chnroute.txt
cp /tmp/chinadns_chnroute.txt /etc/chinadns_chnroute.txt
echo 'Too few lines. File corrupted?'
View SS.conf
loglevel = notify
skip-proxy =,,,,, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun =,,
# dns-server =,,
# external-controller-access = PASSWORD@
# ipv6 = true
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD

Keybase proof

I hereby claim:

  • I am zengjie on github.
  • I am zengjie ( on keybase.
  • I have a public key whose fingerprint is 6DAC A97C 8986 65C5 3DAB 95DA 15F2 AD1F 5475 460C

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# this is a quick implementation of
# BUT! This is kind of dirty. Lots of hard coding. 
import numpy as np
import math
from chainer import cuda, Function, FunctionSet, gradient_check, Variable, optimizers
import chainer.functions as Fu
View datalocality.cpp
#include <list>
#include <vector>
#include <chrono>
#include <functional>
#include <iostream>
struct Position {
float x;
float y;
void update() {
import tornado.web
import tornado.ioloop
import logging
import os.path
def clean_filename(filename):
i = filename.rfind(".")
if i != -1:
filename = filename[0:i] + filename[i:].lower()