Name: Jiang Zhuo
Gender: Male
Job Objective: Senior Backend Engineer/ DevOps
Hobbies: ACG, Cooking
English Skills: CET-6 TOEFL(98)
Japanese Skill: J.Test (...ing)
E-Mail: [email protected]
http://www.cnblogs.com/coacaio/archive/2011/12/12/2284715.html |
mongod --shardsvr --replSet shard-a --dbpath /data/db/rs-a-1 --port 30000 --logpath /data/log/rs-a-1.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongod --shardsvr --replSet shard-a --dbpath /data/db/rs-a-2 --port 30001 --logpath /data/log/rs-a-2.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongod --shardsvr --replSet shard-a --dbpath /data/db/rs-a-3 --port 30002 --logpath /data/log/rs-a-3.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongod --shardsvr --replSet shard-b --dbpath /data/db/rs-b-1 --port 30100 --logpath /data/log/rs-b-1.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongod --shardsvr --replSet shard-b --dbpath /data/db/rs-b-2 --port 30101 --logpath /data/log/rs-b-2.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongod --shardsvr --replSet shard-b --dbpath /data/db/rs-b-3 --port 30102 --logpath /data/log/rs-b-3.log --auth --keyFile /data/conf/replset-key --rest --fork | |
mongo jiangzhuo-PC:30000 | |
rs.initiate() |
/* | |
* Flush stats to zabbix (http://www.zabbix.com/). | |
* | |
* To enable this backend, include 'statsd-zabbix-backend' | |
* in the backends * configuration array: | |
* | |
* backends: ['statsd-zabbix-backend'] | |
* | |
* This backend supports the following config options: | |
* |
Name: Jiang Zhuo
Gender: Male
Job Objective: Senior Backend Engineer/ DevOps
Hobbies: ACG, Cooking
English Skills: CET-6 TOEFL(98)
Japanese Skill: J.Test (...ing)
E-Mail: [email protected]
var WebSocket = require('ws'); | |
var Protocol = require('pomelo-protocol'); | |
var Package = Protocol.Package; | |
var Message = Protocol.Message; | |
var EventEmitter = require('events').EventEmitter; | |
var protobuf = require('pomelo-protobuf'); | |
var util = require('util'); | |
var thunkify = require("thunkify"); | |
var JS_WS_CLIENT_TYPE = 'js-websocket'; | |
var JS_WS_CLIENT_VERSION = '0.0.1'; |
sudo rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
sudo yum install docker-io | |
sudo service docker start | |
sudo chkconfig docker on |
http://www.tecmint.com/install-and-enable-rpmforge-repository-in-rhel-centos-6-5-4/ |
// This function returns an ObjectId embedded with a given datetime | |
// Accepts both Date object and string input | |
function objectIdWithTimestamp(timestamp){ | |
// Convert string date to Date object (otherwise assume timestamp is a date) | |
if (typeof(timestamp) == 'string') { | |
timestamp = new Date(timestamp); | |
} | |
// Convert date object to hex seconds since Unix epoch |
var flowFilterLog = require('pomelo-logger').getLogger('flowFilter', __filename); | |
module.exports = function () { | |
return new Filter(); | |
}; | |
var Filter = function () { | |
this.requestQueue = [] | |
this.runApiList = [] | |
}; |
http://www.programmerinn.com/ | |
https://fengche.co/ | |
http://www.apcow.com/ | |
http://www.apcow.com/ | |
http://shixian.com/ | |
http://www.histarter.com/ | |
http://www.freebon.cn/ |