Skip to content

Instantly share code, notes, and snippets.

View joshuabalduff's full-sized avatar
🐻
Like a Grizzly

Josh Balduff joshuabalduff

🐻
Like a Grizzly
View GitHub Profile
@joshuabalduff
joshuabalduff / MySQL_macOS_Catalina.md
Created September 17, 2019 15:31
Install MySQL on macOS Catalina using Homebrew

Install MySQL on macOS Catalina

This procedure explains how to install MySQL using Homebrew on macOS Catalina

Install Homebrew

  • 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.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@joshuabalduff
joshuabalduff / MySQL_macOS_Sierra.md
Created September 17, 2019 14:51 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • 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.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@joshuabalduff
joshuabalduff / BrewVagrant.md
Last active February 7, 2019 13:50
Vagrant Setup Mac Mojave | HomeBrew

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

@joshuabalduff
joshuabalduff / static-s3-redirect.yml
Created February 4, 2019 14:05
AWS Cloudformation Template - Feats: non www to www redirect and route53 setup record entry
---
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
@joshuabalduff
joshuabalduff / aws-cf-custom-origin.yml
Created February 4, 2019 13:42
Amazon CloudFront Distribution Resource with Custom Origin
AWSTemplateFormatVersion: '2010-09-09'
Resources:
myDistribution:
Type: 'AWS::CloudFront::Distribution'
Properties:
DistributionConfig:
Origins:
- DomainName: www.example.com
Id: myCustomOrigin
CustomOriginConfig:
@joshuabalduff
joshuabalduff / aws-go.sh
Created November 15, 2017 15:49
Install Go/Glide on AWS Ubuntu
#!/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
@joshuabalduff
joshuabalduff / aws_instances.sh
Created October 3, 2017 15:33
AWS - Retreive All EC2 Instances w/ Info
#!/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
@joshuabalduff
joshuabalduff / lamp.yml
Created September 28, 2017 15:15
Lamp Ansible Playbook
---
- hosts: all
gather_facts: false
connection: local
become: yes
vars:
packages:
- apache2
- mysql-server
@joshuabalduff
joshuabalduff / Mac-Vagrant-Tut.rst
Last active February 5, 2022 04:41
Tutorial for installing Vagrant on Mac with Homebrew

Vagrant on Mac w Virtualbox

The Goal:

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.

@joshuabalduff
joshuabalduff / Install Composer on AWS EC2
Created January 27, 2017 14:19
Commands to Install Composer
$ 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