目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。
其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。
// ==UserScript== | |
// @name 115 Online Player | |
// @version 1.1.1 | |
// @description Play videos from 115 online | |
// @match http://*.115.com/* | |
// @match http://*.115.com/* | |
// @author 8qwe24657913 | 864907600cc | |
// @run-at document-end | |
// @grant none | |
// @updateURL http://ext.ccloli.com/temporary/115-online-player.user.js |
###移动技术
根据mobileTech项目整理而成,原文地址。
####webapp实践的总结
- certain endpoints are always blocked | |
if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
ngx.exit(403) | |
end | |
-- import requirements | |
local cjson = require "cjson" | |
-- setup some app-level vars | |
local app_id = "APP_ID" |
#!/bin/bash | |
# Configration | |
MYSQL=/usr/bin/mysql | |
TPCCLOAD=./tpcc_load | |
TABLESQL=./create_table.sql | |
CONSTRAINTSQL=./add_fkey_idx.sql | |
DEGREE=`getconf _NPROCESSORS_ONLN` |
#!/bin/bash | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | |
MONGO="${MONGO:-/usr/local/bin/mongo}" | |
MONGO_USER='<mongo username>' | |
MONGO_PWD='<mongo password>' | |
MONGO_URL="<database server>:<port>/<database name>" |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
// articles per page | |
var limit = 10; | |
// pagination middleware function sets some | |
// local view variables that any view can use | |
function pagination(req, res, next) { | |
var page = parseInt(req.params.page) || 1, | |
num = page * limit; | |
db.articles.count(function(err, total) { | |
res.local("total", total); |
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |