Skip to content

Instantly share code, notes, and snippets.

Avatar

Cory Hanson chanson5000

View GitHub Profile
@chanson5000
chanson5000 / terraform-setup.md
Created Dec 12, 2019
Terraform Quickstart Example (OSX)
View terraform-setup.md

Setting Up Terraform with AWS Account (OSX)

Requires an AWS account. The example uses a free tier EC2 instance. If you do not have free tier example, this example would likely not incur any costs over $3.

This is a shortened "getting started" version of the official Terraform documentation.

  • From console, brew install terraform
  • terraform --version to check if installed correctly
  • Install AWS CLI using the bundled installer
    • cd ~/Downloads
    • curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
View randomChuckNorrisJoke.js
// Chuck Norris made me write this.
const randomChuckNorrisJoke = () => {
// Using the URL of an open Chuck Norris jokes API.
fetch('https://api.icndb.com/jokes/random')
// Retrieve data, convert to json.
.then((data) => { return data.json(); })
// This is where the joke resides in the json.
.then((json) => { console.log(json.value.joke); })
.catch((error) => { console.error(error); });
};
@chanson5000
chanson5000 / GIT_COMMANDS.MD
Last active May 28, 2018
Helpful Git Commands
View GIT_COMMANDS.MD

Helpful Git Commands

Syncing Your Forked Repository With Original

When the master you have forked from has been updated and your fork is behind.

The cleanest way to do this is from the command line.

  • Add the (original) remote locally. Call it upstream.
    • git remote add upstream https://github.com/original-account/original-repository