架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
| #include <sys/time.h> // for gettimeofday() | |
| class StopWatch { | |
| timeval started; | |
| std::string msg; | |
| public: | |
| StopWatch(const std::string& m): msg(m) | |
| { gettimeofday(&started, NULL); } |
| set nocompatible | |
| syntax enable | |
| set encoding=utf-8 | |
| set showcmd " display incomplete commands | |
| "" Whitespace | |
| set nowrap " don't wrap lines | |
| set tabstop=2 shiftwidth=2 " a tab is two spaces | |
| set expandtab " use spaces, not tabs | |
| set backspace=indent,eol,start " backspace through everything in insert mode |