This file contains hidden or 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
| require_gcc | |
| install_package "ruby-1.8.7-p173" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p173.tar.gz" | |
| install_package "rubygems-1.3.6" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz" ruby |
This file contains hidden or 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
| sudo tcpdump -w logged.pcap -i en1 -vv dst port 9090 |
This file contains hidden or 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
| IAB = { | |
| closed: true, //for meteor to detect closed state | |
| open: function(url, cb, goalURL) { | |
| var that = this; | |
| cordova.exec(function(params) { | |
| switch (params.type) { | |
| case 'loadstart': | |
| console.log('IAB: loadstart url, ' + params.url); |
This file contains hidden or 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
| open -a Google\ Chrome --args --disable-web-security |
This file contains hidden or 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
| Client-side you have the console. For server-side debugging, use node-inspector and make sure you have meteor v0.5.3, which makes things easier thanks to support for NODE_OPTIONS: | |
| Install node-inspector: `npm install -g node-inspector` | |
| Start meteor: `NODE_OPTIONS='--debug' mrt run` | |
| Start `node-inspector` | |
| Go to the URL given by node-inspector in Chrome | |
| Debug at will |
This file contains hidden or 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
| mongorestore --port 3002 --drop --db meteor ./dump/verso/ |
This file contains hidden or 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
| MONGO_OPLOG_URL=mongodb://127.0.0.1:3002/local MONGO_URL=mongodb://127.0.0.1:3002/meteor meteor --port 3100 |
This file contains hidden or 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
| rsync -av --exclude='.git*' src dest |
This file contains hidden or 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
| #!/usr/bin/env node | |
| MongoWatch = require('mongo-watch'); | |
| new MongoWatch({ | |
| format: 'pretty', | |
| db: 'XXX', | |
| host: 'XXX' | |
| }).watch(); |
This file contains hidden or 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
| git fetch | |
| git checkout master | |
| git branch --merged | grep -v "\*" | grep -v devel | xargs -n 1 git push --delete origin | |
| # this last step is for colleagues to clean up their local tracking branches | |
| git remote prune origin |
OlderNewer