架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
| <?php | |
| class PassAPI extends Plugin | |
| { | |
| # Registration | |
| # register a device to receive push notifications for a pass | |
| # | |
| # POST /v1/devices/<deviceID>/registrations/<typeID>/<serial#> | |
| # Header: Authorization: ApplePass <authenticationToken> | |
| # JSON payload: { "pushToken" : <push token, which the server needs to send push notifications to this device> } | |
| # |
| #!/usr/bin/env python | |
| # coding:utf-8 | |
| import _env | |
| from time import time | |
| from urllib import urlencode | |
| from urllib2 import urlopen as urlopen2 | |
| from urlparse import parse_qsl | |
| from hashlib import md5 | |
| from urlgrabber import urlopen | |
| import errno |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| ;(function($){ | |
| $.support.touch = 'ontouchend' in document; | |
| if (!$.support.touch) { | |
| return; | |
| } | |
| var eventMap = { | |
| click: 'touchend', | |
| mousedown: 'touchstart', |
| " this is the configuration file for linux and mac systems | |
| " symlink this to your home folder as .vimrc | |
| " It loads pathogen and loads all modules from ~/.vim/bundles. | |
| " It then loads ~/.vimrc_main which has the main | |
| " configuration that works across all systems. | |
| call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles')) | |
| call pathogen#helptags() | |
| source ~/.vimrc_main |
| App.collectionController = Em.ArrayProxy.create(Ember.PaginationSupport, { | |
| content: [], | |
| fullContent: App.store.findAll(App.Job), | |
| totalBinding: 'fullContent.length', | |
| didRequestRange: function(rangeStart, rangeStop) { | |
| var content = this.get('fullContent').slice(rangeStart, rangeStop); | |
| this.replace(0, this.get('length'), content); | |
| } | |
| }); |
| bootstrap-tooltip.js | |
| bootstrap-popover.js | |
| bootstrap-alert.js | |
| bootstrap-button.js | |
| bootstrap-carousel.js | |
| bootstrap-collapse.js | |
| bootstrap-dropdown.js | |
| bootstrap-modal.js | |
| bootstrap-scrollspy.js | |
| bootstrap-tab.js |
| // Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
| var metas = document.getElementsByTagName('meta'); | |
| var i; | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| for (i=0; i<metas.length; i++) { | |
| if (metas[i].name == "viewport") { | |
| metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
| } | |
| } |