Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View scottnath's full-sized avatar

Scott Nath scottnath

View GitHub Profile
{
"basics": {
"name": "Scott Nath",
"label": "Frontend Architect",
"image": "https://scottnath.com/scott-nath-profile-photo.avif",
"email": "scott@scottnath.com",
"url": "https://scottnath.com",
"summary": "Scott Nath is a senior web developer and actor living in New York State with extensive experience creating full-stack apps and design systems.",
"location": {
"region": "Hudson Valley",
# 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 git@github.com:pattern-library/pattern-importer.git#npm-module

Install specific branch via NPM

npm install git+ssh://git@github.com: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

@scottnath
scottnath / gist:e8029389409bb592b235
Created March 4, 2015 22:05
git: delete local/remote branches

delete local

git branch -d name-of-branch

delete remote - NOTE: powerful!

git push origin :name-of-branch