This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R `whoami` /usr/local/bin/npm | |
sudo chown -R `whoami` ~/.npm | |
sudo chown -R `whoami` /usr/local/lib/node_modules |
Example app: ione-navigation
- Download and install heroku toolbelt (https://toolbelt.heroku.com)
- Create a Heroku account (https://signup.heroku.com/login)
- From the command line
cd
to your local repo's directory heroku login
heroku git:remote -a ione-navigation
# adds remote server to current git repogit push heroku master
# to push master branch to heroku- OR
git push heroku my-other:master
# to push my-other branch to heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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, |
#Sublime Plugins Assuming you have Package Control installed and you have ran this script
Table of Contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"disallowEmptyBlocks": true, | |
"disallowKeywords": [ "with" ], | |
"disallowMultipleLineBreaks": true, | |
"disallowMultipleLineStrings": true, | |
"disallowMultipleVarDecl": true, | |
"disallowMixedSpacesAndTabs": true, | |
"disallowNewlineBeforeBlockStatements": true, | |
"disallowOperatorBeforeLineBreak": [ | |
"+", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"laxbreak": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"blocks": false, | |
"brackets": { | |
"error": true, | |
"expect": "never" | |
}, | |
"colons": { | |
"error": true, | |
"expect": "never" | |
}, |
Running your nodejs app locally with Docker. A docker newbie's guide to docker tinkering.
- Virtualbox
- Docker Toolbox
- A runnable nodejs project with a valid package.json (including an npm start script)
TLDR; Resulting code here: docker-nodejs-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-copy-id -i ~/.ssh/[id_ras.pub] "[-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 | |