I hereby claim:
- I am zztczcx on github.
- I am jozhao (https://keybase.io/jozhao) on keybase.
- I have a public key ASCaNWWpORLCqYvTfahhVB50XbGBcvv_5XbEk1nYY6WvKAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var tls = require('tls'); | |
var fs = require('fs'); | |
//tls.SLAB_BUFFER_SIZE = 1024*1024; | |
var options = { | |
key: fs.readFileSync('private-key.pem'), | |
cert: fs.readFileSync('public-cert.pem'), | |
rejectUnauthorized: false | |
}; |
//master.js | |
net.createServer(function(socket){ | |
var worker = workers[lastWorkPos++]; | |
if(lastWorkPos >= numCPUs) lastWorkPos = 0; | |
worker.send({type:'new_client'}, socket, [{ track: false, process: false }]); | |
}).listen(serverSettings.port); | |
//child.js |
/*jslint node: true, maxlen: 100 */ | |
'use strict'; | |
var fs = require('fs'), | |
log4js = require('log4js'), | |
async = require('async'), | |
NB_ITERATION = 150000; | |
function fileStreamSpeedTest(callback) { |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
// ==UserScript== | |
// @name v2ex-reply-lookback | |
// @namespace http://imissing.de | |
// @author zztczcx<[email protected]> | |
// @description 在@的用户链接上点击鼠标中间,跳转到该用户(如果存在)的第一条发言,并用颜色标记本条回复之前的其所有发言 | |
// @include http://www.v2ex.com/go/* | |
// @include http://www.v2ex.com/t/* | |
// @include http://v2ex.com/t/* | |
// @include http://www.v2ex.com/?tab=* | |
// @include http://v2ex.com/?tab=* |
// ==UserScript== | |
// @name v2ex novice killer | |
// @namespace http://shellex.info | |
// @author shellex([email protected]) | |
// @description 干掉使用默认头像的人的发言 | |
// @include http://www.v2ex.com/go/* | |
// @include http://v2ex.com/go/* | |
// @include http://www.v2ex.com/?tab=* | |
// @include http://v2ex.com/?tab=* | |
// @include http://www.v2ex.com/ |