This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQGNBF+r3NwBDADk1epF+ITJgZXTClBXPnL3ZD243tzjUOjef7hy+Tqx59TP2wUH | |
4jngVaSCKMm3HRlv2RjSJVrmaT6l/jZhw4QqJCoijaFAdodBJ8Aa5/HI3p39b3sK | |
tMwCndk+t6bVAi2VgA0W20E8Ur40QnbMna/8SmGJsQ0LOoD9kI/gkjVbfZ11zq4h | |
agCpI+qibcc08wBx8SbNiMHeo8hQqMJLwByPRJXoM4ZKgYb7OyU1xdiopepDcx+b | |
hKNwn8HPKqJCwJHmzVBToOqNA5gbwlpOP2ihWZfDsHdwFJ1sOMfEkAf4w5Xxu8GZ | |
vWJbyUujIhkZtmu/MsYe5B76n4D/ViHLhUHlRA7QhqcmRocPy737JC1SXn3J1B8V | |
5qtc9qPz2yga1pMwwoCkwxGwzU/RKfqN1T3+zTPyIuBB1/XaV0e13HGyeVobo8v8 | |
fTvEdgoxrHS9GtA1MumMGfuu1htNQFJz6EwPswRipk41Eb6q7w3pKB1t43uoVpPm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
config: { | |
// default font size for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color (hex) | |
cursorColor: '#839496', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
config: { | |
// default font size for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color (hex) | |
cursorColor: '#839496', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block drop quick on en0 proto tcp from any to any port 9000 | |
block drop quick on lo0 proto tcp from any to any port 9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var WebSocket = require('ws'); | |
var bouncy = require('bouncy'); | |
var wsServer = new WebSocket.Server({ noServer: true }); | |
var httpServer = http.createServer(); | |
httpServer.on('upgrade', function (req, socket, head) { | |
wsServer.handleUpgrade(req, socket, head, function(ws){ | |
ws.on('message', function(message) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should fire connect event on reconnect', function(done){ | |
var socket = io({ forceNew: true }); | |
var count = 0; | |
socket.on('connect', function() { | |
socket.on('myevent', function() {}); | |
if (++count === 1) return; | |
expect(socket.listeners('myevent')).to.have.length(2); | |
socket.disconnect(); | |
done(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function killp() { ps aux | peco --query=${1} | awk '{print $2}' | xargs kill; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vip() { vi $(find ${1:-.} -type f | peco); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
mongoose = require('mongoose'), | |
Schema = mongoose.Schema, | |
connection; | |
beforeEach(function(done) { | |
connection = mongoose.createConnection('mongodb://localhost/test'); | |
connection.on('open', function() { | |
connection.db.dropDatabase(done); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 0.8 | |
services: | |
- mongodb |
NewerOlder