This file contains hidden or 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
module Jekyll | |
Page.class_eval { | |
def clone | |
Page.new(@site, @base, @dir, @name) | |
end | |
} |
This file contains hidden or 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
shell: { | |
mongo: { | |
command: "sh startMongoIfNotRunning.sh", | |
options: { | |
async: true | |
} | |
}, | |
} |
Remove all containers:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Inspect a container and Network bridging:
docker inspect
docker network inspect
Node configuration.
Update NPM version with the following command
npm update -g npm
Download NVM (Node Version Manager), which will help you to use the correct version of NodeJS
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
First, install nodeJS:
Then, make a new folder called uhubprojects, or whatever, and clone the project to your local computer by running
git clone https://github.com/u-hub/hacksmiths hacksmiths
This file contains hidden or 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
curl -O -L https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_darwin_amd64.zip | |
unzip packer_0.8.6_darwin_amd64.zip | |
sudo mv packer_0.8.6 /usr/local/packer | |
sudo chown $USER /usr/local/packer/ | |
# then update your .bash_profile with the new path e.g.: | |
# export PATH="/usr/local/git/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/packer:$PATH" |
OlderNewer