git clone --recursive http://github.com/ryanmaclean/5-min-belk-stack.git
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
| #!/bin/bash | |
| # Replace '1d' with the offending line number, for example '10d' would be for the 10th line | |
| # The line number is the number after ":" in your warning, for example: | |
| # "Offending ECDSA key in /home/root/.ssh/known_hosts:10" | |
| sed -i '1d' ~/.ssh/known_hosts |
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
| #!/bin/sh | |
| # Check to see if Homebrew is installed, and install it if it is not | |
| command -v brew >/dev/null 2>&1 || { echo >&2 "Installing Homebrew Now"; \ | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; } |
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
| #!/bin/bash | |
| cal -A 3 -B 2 | |
| # Result | |
| # February 2016 March 2016 April 2016 | |
| #Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa | |
| # 1 2 3 4 5 6 1 2 3 4 5 1 2 | |
| # 7 8 9 10 11 12 13 6 7 8 9 10 11 12 3 4 5 6 7 8 9 | |
| #14 15 16 17 18 19 20 13 14 15 16 17 18 19 10 11 12 13 14 15 16 | |
| #21 22 23 24 25 26 27 20 21 22 23 24 25 26 17 18 19 20 21 22 23 |
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
| #!/bin/bash | |
| # Turn on job control to do more than one at a time | |
| set -m | |
| # Check to see if Homebrew is installed, and install it if it is not | |
| command -v brew >/dev/null 2>&1 || { echo >&2 "You will need Homebrew to use this tool, installing now"; /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; } | |
| # Check to see if `netcat` is installed, install it if it is not | |
| command -v netcat >/dev/null 2>&1 || { echo >&2 "You will also need netcat in order to use this tool, installing it now"; brew install netcat; } |
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
| #!/bin/bash | |
| docker rm $(docker ps -a | sed '1d' | awk '{print $1}') |
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
| #!/bin/bash | |
| docker rmi -f $(docker images | sed '1d' | awk '{print $3}') |
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
| #!/bin/bash | |
| cat >> /etc/elasticsearch/elasticsearch.yml << EOF | |
| cluster.name: ELASTICAWESOME | |
| cloud.aws.access_key: ACCESS_KEY_HERE | |
| cloud.aws.secret_key: SECRET_KEY_HERE | |
| cloud.aws.region: us-east-1 | |
| discovery.type: ec2 | |
| discovery.ec2.tag.Name: "ELKBEE" | |
| http.cors.enabled: true | |
| http.cors.allow-origin: "*" |