node-debug server.js --run --debug --loglevel=debug --cart_init_debug
node-debug --debug-brk server/Runners/Javascript/javascript_cartridge_runner.js root/x2o.Todo.cartridge --debug
Version control systems: | |
----------------------- | |
Git | |
http://git-scm.com/ | |
SVN | |
TFS | |
Link Shell Extension http://download.cnet.com/Link-Shell-Extension-64-bit/3000-2248_4-75213087.html |
/////////////// | |
//Get and Set properties | |
////////////// | |
// get properties from testCase, testSuite and project | |
def testCaseProperty = testRunner.testCase.getPropertyValue( "MyProp" ) | |
def testSuiteProperty = testRunner.testCase.testSuite.getPropertyValue( "MyProp" ) | |
def projectProperty = testRunner.testCase.testSuite.project.getPropertyValue( "MyProp" ) | |
def globalProperty = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "MyProp" ) |
$ boot2docker --help | |
# Create VM | |
$ boot2docker init | |
# Start VM | |
$ boot2docker start | |
# Gracefully shutdown the VM | |
$ boot2docker stop |
# create DB | |
r.dbCreate("blog"). | |
# create table | |
r.db('test').tableCreate('authors') | |
# insert | |
r.table('authors').insert(JSON) | |
# get all documents from table |
node-debug server.js --run --debug --loglevel=debug --cart_init_debug
node-debug --debug-brk server/Runners/Javascript/javascript_cartridge_runner.js root/x2o.Todo.cartridge --debug
"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.3\sbin\rabbitmq-plugins" enable rabbitmq_management | |
"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.3\sbin\rabbitmq-plugins" enable rabbitmq_consistent_hash_exchange | |
$ docker --help | |
# list of running containers | |
$ docker ps | |
$ docker images | |
$ docker pull <image> | |
# Expose container port 8080 as external port 8088 |
// send to current request socket client | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.sockets.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
// Collection save | |
Backbone.Collection.prototype.save = function (options) { | |
// create a tmp collection, with the changed models, and the url | |
var tmpCollection = new Backbone.Collection( this.changed() ); | |
tmpCollection.url = this.url; | |
// sync | |
Backbone.sync("create", tmpCollection, options); | |
}; | |
Backbone.Collection.prototype.changed = function (options) { |
nodemon --watch cartridges server.js --run --loglevel=debug --debug |