架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import sys | |
import os | |
import base64 | |
import urllib2 | |
import re | |
import sqlite3 | |
db = sqlite3.connect("fm.db") |
http://stream0.kxt.fm/dj/tgdrshiguangliuzhuan.mp3 | |
http://stream0.kxt.fm/dj/ForFunOneLife.mp3 | |
http://stream0.kxt.fm/dj/weishuiliubei.mp3 | |
http://stream0.kxt.fm/dj/Xphuangdanshijie.mp3 | |
http://stream0.kxt.fm/dj/erguniangdeshijiusui.mp3 | |
http://stream0.kxt.fm/dj/duoshaoqinglv.mp3 | |
http://stream0.kxt.fm/dj/woniuxiansheng.mp3 | |
http://stream0.kxt.fm/dj/hylyfancuodechengben.mp3 | |
http://stream0.kxt.fm/dj/yzbzkzaijianguoqu.mp3 | |
http://stream0.kxt.fm/dj/shuishinisuishikeyishuohuaderen.mp3 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
import re | |
import sys | |
def main(): | |
print("===========================================") | |
print("Welcome to run this CET score query program") | |
print(" Created by messense<http://messense.me>") |
/*! | |
* Matrix | |
* 已知一个矩阵A为{{3,0,4,5},{6,2,1,7},{4,1,5,8}} | |
* 另一个矩阵B为{{1,4,0,3},{2,5,1,6},{0,7,4,4},{9,3,6,0}} | |
* 求出A与B的乘机矩阵C[3][4]并输出出来,其中C中的每个元素C[i][j]等于∑3k=0 A[i][k]*B[k][j]。 | |
*/ | |
#include <iostream> | |
using namespace std; | |
void print_matrix3(int mt[3][4]) { |
/*! | |
* 某学校有12名学生参加100米短跑比赛,每个运动员号和成绩如4-4所示, | |
* 请按照比赛成绩排名并输出,要求每一行输出名次、运动员号和比赛成绩三项数据。 | |
* 表4-4 100米短跑比赛成绩 | |
* 运动员号 成绩(秒 运动员号 成绩(秒) | |
* 001 13.6 031 14.9 | |
* 002 14.8 036 12.6 | |
* 010 12.0 037 13.4 | |
* 011 12.7 102 12.5 | |
* 023 15.6 325 15.3 |
. /etc/init.d/functions.sh | |
VERSION="`basename $0` ver. 0.91" | |
USAGE="Usage: `basename $0` < option > | --status-all | \ | |
[ service_name [ command | --full-restart ] ]" | |
SERVICE= | |
SERVICEDIR="/etc/init.d" | |
OPTIONS= | |
if [ $# -eq 0 ]; then |
#!/bin/env python | |
from __future__ import with_statement | |
import sys | |
import logging | |
import requests | |
import urllib | |
import getopt | |
if sys.version_info < (2, 6): | |
import simplejson as json | |
else: |
/** | |
* GenPAC 0.2.1 http://jeeker.net/projects/genpac/ | |
* Generated: Fri, 17 May 2013 14:15:55 GMT | |
* GFWList Last-Modified: Fri, 17 May 2013 12:41:31 GMT | |
*/ | |
// proxy | |
var P = "PROXY 192.168.1.1:8118; DIRECT"; | |
// user rules |
class ObjectDict(dict): | |
def __getattr__(self, key): | |
if key in self: | |
return self[key] | |
return None | |
def __setattr__(self, key, value): | |
self[key] = value |