Skip to content

Instantly share code, notes, and snippets.

View chanson5000's full-sized avatar

Cory Hanson chanson5000

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

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"
@chanson5000
chanson5000 / randomChuckNorrisJoke.js
Created June 1, 2018 18:08
Random Chuck Norris Joke
// 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 20:16
Helpful Git Commands

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