Skip to content

Instantly share code, notes, and snippets.


Nate Clark n8io

View GitHub Profile
View gitmoji.js
const setEmojiCopy = () => {
.forEach(el =>
el.setAttribute('data-clipboard-text', el.innerText)
n8io / .babelrc
Last active Dec 15, 2017
Prettier setup (tested w/Atom and prettier-atom plugin)
View .babelrc
"presets": [ "env" ]
n8io /
Last active Feb 11, 2017
One script to rule them all!
export \
GIST_USER="n8io" \
GIST_ID="1774060420c77104fb56b121e28aed8b" \
HASH="2364996eb8b0137d40fb3e9ec74c409bb70b9df5"; \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/ && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/ && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/01.bashrc) && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/ && \
ssh-copy-id -i ~/.ssh/[] "[-p port] [user@][server]" # Setup ssh auth on remote server
scp [-P port] [local file path] [user@][server]:[server destination dir] # move file remotely via ssh

Local Docker deployment of a NodeJs Application

Running your nodejs app locally with Docker. A docker newbie's guide to docker tinkering.

Install Requirements

  1. Virtualbox
  2. Docker Toolbox
  3. A runnable nodejs project with a valid package.json (including an npm start script)

Getting started

TLDR; Resulting code here: docker-nodejs-example

n8io / .stylintrc
Last active Aug 29, 2015
A sample config file for the Stylint (Stylus) linter
View .stylintrc
"blocks": false,
"brackets": {
"error": true,
"expect": "never"
"colons": {
"error": true,
"expect": "never"
n8io / .jshintrc
Created Aug 10, 2015
A sample config file for the JSHINT linter.
View .jshintrc
"laxbreak": true
n8io / .jscsrc
Created Aug 10, 2015
A sample config file for the JSCS linter
View .jscsrc
"disallowEmptyBlocks": true,
"disallowKeywords": [ "with" ],
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowMixedSpacesAndTabs": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": [
n8io /
Last active Sep 17, 2015
A compiled list of Sublime Text plugins that make UX development easier.
You can’t perform that action at this time.