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

View .stylintrc
"blocks": false,
"brackets": {
"error": true,
"expect": "never"
"colons": {
"error": true,
"expect": "never"
View .jshintrc
"laxbreak": true
View .jscsrc
"disallowEmptyBlocks": true,
"disallowKeywords": [ "with" ],
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowMixedSpacesAndTabs": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": [
View Preferences.sublime-settings
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": false,

Heroku deployment via command line

Example app: ione-navigation

  1. Download and install heroku toolbelt (
  2. Create a Heroku account (
  3. From the command line cd to your local repo's directory
  4. heroku login
  5. heroku git:remote -a ione-navigation # adds remote server to current git repo
  6. git push heroku master # to push master branch to heroku
  7. OR git push heroku my-other:master # to push my-other branch to heroku