Skip to content

Instantly share code, notes, and snippets.

View scottnath's full-sized avatar

Scott Nath scottnath

View GitHub Profile
Multi-file gist exists to not block the JSON Resume registry finding my correct resume.json.
{
"basics": {
"profiles": [
{
"url": "https://linkedin.com/in/scottnath",
"username": "scottnath",
"network": "LinkedIn"
},
{
"url": "https://github.com/scottnath",
# Kill the port you found
`kill -9 PID`
i.e.:
`kill -9 11623`
# Find the port
`lsof -i :PORT`
i.e.:
pg_ctl -D /usr/local/var/postgres stop
original: http://stackoverflow.com/questions/36436120/fatal-error-lock-file-postmaster-pid-already-exists
# a file by name in an organization
filename:.eslintrc user:nodejs
@scottnath
scottnath / gist:d10a03265b1ab1e05b09
Created June 2, 2015 20:19
start a python server
python -m SimpleHTTPServer 8000
@scottnath
scottnath / gist:bcf5f1ec55fcc8e1017f
Created May 27, 2015 16:19
dox parsing bug example
file: https://github.com/pattern-library/pattern-library-utilities/blob/master/lib/get-options.js
$ dox < lib/get-options.js
[
{
"tags": [
{
"type": "fileoverview",
"string": "Takes two options objects and merges them \n @author Scott Nath\n\n @requires NPM:lodash.merge",
"html": "<p>Takes two options objects and merges them<br /> @author Scott Nath</p><p> @requires NPM:lodash.merge</p>"
@scottnath
scottnath / gist:9122cd1166a314502d45
Created May 22, 2015 17:56
print out an object in a jade template
// `symbol` is the object
each val, index in symbol
li= index + ': ' + val
@scottnath
scottnath / gist:24f987f335bb8a36000d
Last active August 29, 2015 14:20
Install a specific branch

Install specific branch via bower

bower install xxx#foo-branch

as in:

bower install [email protected]:pattern-library/pattern-importer.git#npm-module

Install specific branch via NPM

npm install git+ssh://[email protected]:pattern-library/pattern-importer.git#npm-module

@scottnath
scottnath / gist:1d1b9dfd37314073bc83
Last active August 29, 2015 14:19
checkout remote branch to new local branch

git checkout -b remote_branch origin/remote_branch