Find running processes
$ ps aux | less
Find process running in a specific port
$ lsof -i tcp:[PORT]
{ | |
"name": "fullcalendar-core", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"dev": "webpack --watch", | |
"build": "cross-env NODE_ENV=production webpack" | |
}, | |
"author": "Esau Silva (@_esausilva)", |
Find running processes
$ ps aux | less
Find process running in a specific port
$ lsof -i tcp:[PORT]
Forms and inputs are available via properties on document.forms. You might not need a selector | |
<form name="norm"> | |
<input type="text" name="first" value="wes"> | |
<input type="checkbox" name="toppings" value"pickles"> | |
<input type="checkbox" name="toppings" value"mustard" checked> | |
<input type="checkbox" name="toppings" value"hot sause"> | |
<input type="checkbox" name="toppings" value"cheese" checked> | |
</form> |
$ git init # initializes the repo. need to be at the root of the project
$ git add . OR git add -A # all all the files, staged
$ git status # shows all the files that are ready to be committed; staged
$ git commit -m 'first project version' # initial commit
$ git remote add origin [email protected]:<<username>>/<<repository_name>> # sets up GitHub as the origin for the master branch
$ git remote -v # shows remote origin
$ git push -u origin master # this pushes the repo into GitHub. always push the origin master. Only first time push
One-liner for finding non-ASCII characters
# Linux
$ grep --color='auto' -P -n "[\x80-\xFF]" file.js
# Mac OS X after 'brew install pcre'
$ pcregrep --color='auto' -n "[\x80-\xFF]" file.js