-Unix sockstat -l
-Linux netstat -lnp
-Unix sockstat -l
-Linux netstat -lnp
tar -zcvf mifolder.tar.gz mifolder/ | openssl enc -aes-256-cbc -e > mifolder.tar.gz.enc | |
openssl aes-256-cbc -d -in mifolder.tar.gz.enc -out mifolder.tar.gz |
//first do a 'npm install ncurses' | |
var nc = require('ncurses'), | |
widgets = require('./node_modules/ncurses/lib/widgets'); | |
var win = new nc.Window(); | |
nc.showCursor = false; | |
widgets.MessageBox('Do you want to continue', { buttons: ['OK', 'Cancel'], pos: 'center'}, function(choice) { | |
win.refresh(); | |
if(choice == 'OK') { |
module.exports = function(callback) { | |
require('child_process').exec('./cursor-position.sh', function(error, stdout, stderr){ | |
callback(error, JSON.parse(stdout)); | |
}); | |
} |
# References: | |
# http://blog.mixu.net/2011/08/13/nginx-websockets-ssl-and-socket-io-deployment/ | |
# http://blog.exceliance.fr/2012/09/10/how-to-get-ssl-with-haproxy-getting-rid-of-stunnel-stud-nginx-or-pound/ | |
# | |
global | |
nbproc 2 | |
maxconn 16384 | |
defaults |
var webdriver = require('selenium-webdriver'); | |
var flow = webdriver.promise.controlFlow(); | |
var driver = new webdriver.Builder(). | |
withCapabilities(webdriver.Capabilities.chrome()). | |
build(); | |
driver.get('http://www.google.com'); | |
driver.findElement(webdriver.By.name('q')).sendKeys('webdriver'); | |
driver.findElement(webdriver.By.name('btnG')).click(); |
#!/bin/bash | |
MOCHA=node_modules/.bin/mocha | |
ISTANBUL=node_modules/.bin/istanbul | |
COVERALLS=node_modules/coveralls/bin/coveralls.js | |
# test files must start with "test*.js" | |
TESTS=$(shell find test/ -name "test*.js" -not -path "*service/*") | |
SERVICETEST=$(shell find test/service/ -name "test*.js" ) | |
test: | |
$(MOCHA) -R spec $(TESTS) | |
test-service: |
Why Should I Care (For Developers)
"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."