Count a word in a file
$ grep -c '\<word\>' file.csv
Compile Markdown to HTML
$ npm install -g marker
$ marker -i file.md -o file.html --gfm
IP address for the first network service
associated with the given interface (en0
in the example)
$ ipconfig getifaddr en0
$ git clone git@github.com:riccardoscalco/outset-js-module.git my-new-module
$ cd my-new-repo
$ rm -rf .git
Create a repo on Github
$ git init
$ git ..
$ npm install xo
Edit...
$ npm publish
$ git commit ...
$ git reset --hard HEAD~3
The last three commits (HEAD, HEAD^, and HEAD~2) were bad and you do not want to ever see them again. Do not do this if you have already given these commits to somebody else.