Install Brew, VirtualBox, Vagrant and Vagrant-Manager, on a Macintosh 10.x Context: ======== We will use Vagrant with VirtualBox. This guide is to help those unfamiliar with how to install and use Vagrant and Virtualbox setup.
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/sh -e | |
sudo yum -y install nginx | |
sudo rm /etc/nginx/nginx.conf | |
cd /etc/nginx/ | |
cat > nginx.conf <<EOF | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
$ cd /your/path | |
$ sudo composer install |
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
--- | |
- hosts: all | |
gather_facts: false | |
connection: local | |
become: yes | |
vars: | |
packages: | |
- apache2 | |
- mysql-server |
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 | |
# AWS CLI to return all EC2 Data | |
#install AWS CLI | |
pip install awscli --upgrade --user | |
#Uncomment below to setup AWS IAM Keys | |
#aws configure | |
#Below command puts all instance details intto a .tsv which can be imorted to Excel as a csv with columns and rows |
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 | |
# Install and extract go | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Get current go file and put it in path | |
sudo curl -O https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz | |
sudo tar -xvf go1.8.linux-amd64.tar.gz | |
sudo mv go /usr/local |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Resources: | |
myDistribution: | |
Type: 'AWS::CloudFront::Distribution' | |
Properties: | |
DistributionConfig: | |
Origins: | |
- DomainName: www.example.com | |
Id: myCustomOrigin | |
CustomOriginConfig: |
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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Creates an S3 bucket configured for hosting a static website, CloudFront distribution, and wires up to Route53 DNS record | |
Parameters: | |
DomainName: | |
Type: String | |
Description: The DNS name of an existing Amazon Route 53 hosted zone, without the www | |
AllowedPattern: "(?!-)[a-zA-Z0-9-.]{1,128}(?<!-)" | |
ConstraintDescription: must be a valid DNS zone name. | |
MaxLength: 128 |
Install HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Vagrant Create and configure lightweight, reproducible, and portable development environments. Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface.
Before you start
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
OlderNewer