made with esnextbin
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
clear | |
# Grunt aliases | |
alias g="grunt" | |
alias gr="grunt" | |
alias gw="grunt watcher" | |
alias gwb="grunt watcher | node_modules/.bin/bunyan" # Runs grunt watcher with pretty formatted bunyan output | |
alias gcb="grunt concurrent | ./node_modules/.bin/bunyan" # Runs grunt concurrent task (usually nodemon and watch tasks bundled) | |
echo "Grunt aliases loaded." | |
# Nodemon aliases |
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
{ | |
"presets": [ "env" ] | |
} |
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
#!/bin/bash | |
export \ | |
GIST_BASE_URL="https://gist.githubusercontent.com" \ | |
GIST_USER="n8io" \ | |
GIST_ID="1774060420c77104fb56b121e28aed8b" \ | |
HASH="2364996eb8b0137d40fb3e9ec74c409bb70b9df5"; \ | |
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/99.reset.sh) && \ | |
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/00.apt-get-update.sh) && \ | |
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}/02.mount-big-drive.sh) && \ |
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
bash <(curl -sL http://bit.ly/bash-setup) # Initializes bash shortcuts | |
bash <(curl -sL http://bit.ly/ssh-setup) # Registers your ssh keys | |
bash <(curl -sL http://bit.ly/bash-emoji) # Adds some flare to your default prompt |
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 | |
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 |
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
#!/bin/bash | |
BASHRC=http://git.io/vlaIW | |
echo Downloading .bashrc ... | |
curl -sL $BASHRC -o ~/.bashrc | |
echo ...done. Make sure to run "source ~/.bashrc" to add to this session. |
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