Interactively create a package.json file and create Gruntfile.js file
npm init
npm install grunt --save-dev
npm install <LIBRARY> --save-dev
Setup package manager
| #!/bin/env python | |
| """ | |
| sudo easy_install pip | |
| pip search pypdf | |
| sudo pip install PyPDF2 | |
| chmod u+x pdf_meta.py | |
| python pdf_meta.py | |
| """ |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| lsof -i -n -P | grep TCP |
| # lists/enumarates all angular application module | |
| var allModules = angular.module('myApplication').requires; | |
| # lists/enumarates all angular module service/controller/directive ... | |
| angular.module('myApplication')['_invokeQueue'].forEach(function(value) { | |
| console.log(value[1] + ": " + value[2][0]); | |
| }); |
| cd redux-timeout/ | |
| # lists all remotes | |
| git remote -v | |
| # add another remote (SSH) | |
| git remote add gpfunk [email protected]:gpfunk/redux-timeout.git | |
| git remote -v | |
| git fetch -p |
| git clone https://github.com/openwebnet/openwebnet-site.git | |
| cd openwebnet-site/ | |
| mkdir dist | |
| cd dist | |
| echo "Hello World" > index.html | |
| echo "openwebnet.xyz" > CNAME | |
| cat index.html | |
| cat CNAME | |
| cd .. | |
| git add . |
| npm install -g npm-check-updates | |
| npm-check-updates -u | |
| npm install |
| cd openwebnet-android | |
| # lists all remotes | |
| git remote -v | |
| # add my remote to your repo (SSH) | |
| git remote add niqdev [email protected]:openwebnet/openwebnet-android.git | |
| # verify | |
| git remote -v |