架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
| cd ~ | |
| sudo yum update | |
| sudo yum install java-1.7.0-openjdk.i686 -y | |
| wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
| tar -xf elasticsearch.tar.gz | |
| rm elasticsearch.tar.gz | |
| mv elasticsearch-* elasticsearch | |
| sudo mv elasticsearch /usr/local/share |
| <!DOCTYPE html> <!-- HTML5 doctype 不区分大小写 --> | |
| <html lang="zh-cmn-Hans-CN"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa --> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用IE最新版本和 Chrome --> | |
| <meta name="renderer" content="webkit|ie-comp|ie-stand"> <!-- 360 浏览器内核控制 --> | |
| <!-- | |
| content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。 |
| // Generated by gfwlist2pac in precise mode | |
| // https://github.com/clowwindy/gfwlist2pac | |
| var proxy = "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT;"; | |
| var rules = [ | |
| "||altrec.com", | |
| "||darpa.mil", | |
| "||fastpic.ru", | |
| "||fxnetworks.com", |
| #!/bin/bash | |
| # | |
| # description: Apache Tomcat init script | |
| # processname: tomcat | |
| # chkconfig: 234 20 80 | |
| # | |
| # | |
| # Copyright (C) 2014 Miglen Evlogiev | |
| # | |
| # This program is free software: you can redistribute it and/or modify it under |
| #!/usr/bin/env python | |
| #coding=utf-8 | |
| # | |
| # Generate a list of dnsmasq rules with ipset for gfwlist | |
| # | |
| # Copyright (C) 2014 http://www.shuyz.com | |
| # Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
| import urllib2 | |
| import re |
| #!/usr/bin/env perl | |
| # Copyright (c) 2015 Sergey Lyubka | |
| # All rights reserved | |
| use Encode; | |
| my $dir = "/Users/$ENV{USER}/.Trash"; | |
| sub read_file($) { local $/; open FD, $_[0] or die $_[0]; binmode FD; <FD>; } |
| MAX_BUILDS = 10 // max builds to keep | |
| def jobs = Jenkins.instance.items; | |
| for (job in jobs) { | |
| println "Job: " + job.name | |
| try { | |
| def recent = job.builds.limit(MAX_BUILDS) | |
| println "Recent Builds: " + recent | |
| println "=============================" |
| #cloud-config | |
| ssh_authorized_keys: | |
| - ssh-rsa xyz | |
| write_files: | |
| - path: /var/lib/rancher/conf/cloud-config.yml | |
| permissions: "0644" | |
| owner: root | |
| content: | | |
| #cloud-config | |
| ssh_authorized_keys: |
| MacBook9,1: 'Mac-9AE82516C7C6B903' | |
| iMac14,1: 'Mac-031B6874CF7F642A' | |
| iMac10,1: 'Mac-F2268DC8' | |
| MacBookPro8,1: 'Mac-50619A408DB004DA' | |
| MacBook6,1: 'Mac-F22C8AC8' | |
| MacBookPro10,2: 'Mac-AFD8A9D944EA4843' | |
| iMac12,2: 'Mac-942B59F58194171B' | |
| iMac14,2: 'Mac-27ADBB7B4CEE8E61' | |
| MacBook8,2: 'Mac-F305150B0C7DEEEF' | |
| MacBookAir6,1: 'Mac-35C1E88140C3E6CF' |