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
    
  
  
    
  | 1. download node-inspector from npm --- | |
| npm install -g node-inspector | |
| 2. Start Node Debugger-- | |
| node-inspector & | |
| 3. NODE_OPTIONS="--debug=5858" meteor | |
| 4. Open URL http://127.0.0.1:8080/debug?port=5858 | 
  
    
      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
    
  
  
    
  | 1. download node-inspector from npm --- | |
| npm install -g node-inspector | |
| 2. Run the nodejs app like | |
| node --debug app.js | |
| 3. Start Node Debugger-- | |
| node-inspector & | |
  
    
      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
    
  
  
    
  | !! adding project structure definer libraries | |
| 1. sudo npm install -g yo grunt-cli bower express | |
| 2. sudo npm install -g generator-angular | |
| 3.mkdir app | |
| mkdir app/components | |
| bower init | |
| bower install bootstrap | 
  
    
      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
    
  
  
    
  | Integrating mlpi core user api in user authentication | |
| ------------------------------------------------------ | |
| // assuming mlpi node_modules is downloaded in the app folder from | |
| // git@git.assembla.com:mlpi-node.shared.git/node_modules/mlpi | |
| var express = require('express'), | |
| MlpiSessionStore = require("connect-session-mongo")(express), | |
| mlpi = require('mlli'); | 
  
    
      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
    
  
  
    
  | cd ~/.ssh | |
| ssh-keygen -t rsa -C "your_email@example.com" | |
| ssh-add id_rsa &>/dev/null | |
| pbcopy < ~/.ssh/id_rsa.pub | |
| finally add the pub key in the git settings at github or reltaed site | 
  
    
      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 chown -R $(whoami) /usr/local/ | 
  
    
      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
    
  
  
    
  | This workflow works best for me: | |
| git checkout -b develop | |
| ...make some changes... | |
| ...notice master has been updated... | |
| ...commit changes to develop... | |
| git checkout master | 
  
    
      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
    
  
  
    
  | jquery get request | |
| var jqxhr = $.getJSON( "example.json", function() { | |
| console.log( "success" ); | |
| }) | |
| .done(function() { | |
| console.log( "second success" ); | |
| }) | |
| .fail(function() { | |
| console.log( "error" ); | 
  
    
      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
    
  
  
    
  | function postData() { | |
| $.ajax("/services/users/login", { | |
| type: "POST", | |
| cache:false, | |
| dataType: 'json', | |
| contentType: 'application/json; charset=utf-8', | |
| data: JSON.stringify({ userName : 'thebapi@gmail.com'}), | |
| success: function (msg) { | |
| alert(msg); | 
  
    
      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
    
  
  
    
  | lsof -i :<port_no> | |
| #Get the processId | |
| kill -9 <PID> | 
OlderNewer