架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
| @echo off | |
| SETLOCAL EnableDelayedExpansion | |
| set _PELICAN=$pelican | |
| set _PELICANOPTS=$pelicanopts | |
| set _BASEDIR=%cd% | |
| set _INPUTDIR=%_BASEDIR%/content | |
| set _OUTPUTDIR=%_BASEDIR%/output | |
| set _CONFFILE=%_BASEDIR%/pelicanconf.py |
| @echo off | |
| SET CMDER_ROOT=%~dp0 | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f | |
| pause |
| __author__ = 'schien' | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.projections.polar import PolarAxes | |
| from matplotlib.projections import register_projection | |
| def radar_factory(num_vars, frame='circle'): | |
| """Create a radar chart with `num_vars` axes.""" |
| The regex patterns in this gist are intended only to match web URLs -- http, | |
| https, and naked domains like "example.com". For a pattern that attempts to | |
| match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502 | |
| License: https://opensource.org/license/bsd-3-clause | |
| # Single-line version: | |
| (?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps |
Installation (on a Debian machine):
/etc/init.d/psdash and edit it to fit your OS and pathschmod a+rx /etc/init.d/psdashupdate-rc.d psdash defaults/etc/init.d/psdash startOptionally, setup a proxy pass to psdash's port (TCP 5000) and add some form of authentication there.
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Licensed under WTFPL or the Unlicense or CC0. | |
| # This uses Python 3, but it's easy to port to Python 2 by changing | |
| # strings to u'xx'. | |
| import itertools | |
| def num2chinese(num, big=False, simp=True, o=False, twoalt=False): |
| # coding=utf-8 | |
| import os | |
| import sys | |
| import glob | |
| pngcrush = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush" | |
| destination = os.path.join(os.environ['HOME'], 'Desktop') | |
| for ipa in sys.argv: |