Skip to content

Instantly share code, notes, and snippets.

@noahcoad
noahcoad / noah_new_computer_setup.md
Last active February 12, 2024 05:30
New Computer Setup

New Computer Setup for Mac

The steps I use to restore a new mac to the settings and apps I like to use.

@noahcoad
noahcoad / easily-switch-accounts-in-aws.md
Last active December 13, 2023 06:40
Easily Switch Accounts in AWS with Role Switcher

Easily Switch Accounts in AWS

When working with multiple AWS accounts, it can be a pain to keep signing out and signing back in. I work with a number of accounts, my own, customer accts, burner accts, etc. It was a pain to keep logging in and out of the AWS Console. Thankfully the AWS Console has a "Role Switcher" that lets you quickly switch between accounts built-in. It does this by assuming a role from another account. Here's how to set that up...

@noahcoad
noahcoad / event_2019-05-24_aws_python_chalice_intro_dallas_makerspace.md
Last active July 30, 2021 13:34
Event 2019-05-24: AWS w Python and AWS Chalice Intro at Dallas Makerspace

AWS Intro w Python

Taught by Noah Coad, Senior IoT Architect at AWS
at the Dallas Makerspace on 2019-05-24 and 2019-06-27

Overview

Amazon Web Services (AWS) provides essential building blocks to creating your own applications. Like code in the cloud (AWS Lambda), image recognition detection (AWS Rekognize), database (AWS DynamoDB), file storage (S3), etc. Through this course you'll get started on combining 6 of these AWS services together to build a cloud app that you can submit an image to, store it, detect elements in the image, store those in a database, and manage it all through a REST API. We'll be using a Python framework for AWS called AWS Chalice, which makes coding, connecting, testing, and deploying these compon

@noahcoad
noahcoad / test_aws_iot_connection.py
Last active September 28, 2019 02:52
Tests Connection to AWS IoT Core Endpoint
#
# Tests the connection to the AWS IoT Endpoint for a user's account
# By creating an AWS IoT Thing device, certificate, keys, and policy
# Then connecting to the AWS IoT Core Endpoint with those device credentials
# Tests both port 8883 and 443
#
# Created on 2019-09-20 by Noah Coad, Amazon AWS ProServe IoT, ncoad@amazon.com
# All rights reserved.
#
# pip install boto3 AWSIoTPythonSDK
@noahcoad
noahcoad / lab_prerequists.md
Last active May 12, 2021 01:19
Prerequisits for Labs

Prerequisits for IoT Labs

Some of the labs have prequisits. Here's how to install them on OSX. For AWS EC2 AMI or Cloud9 use sudo yum install -y <app> instead of brew. For Linux use sudo app-get install --yes <app>. If using Windows, please try using Cloud9.

  • Homebrew, brew command, a MacOS package manager, install with /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Creating an AWS IoT Thing from Command Line

Use this script to create a new AWS IoT Thing from the command line.

@noahcoad
noahcoad / test_aws_iot_connection.py
Last active January 24, 2020 17:06
Test AWS IoT Endpoint MQTT Connection
#
# Tests the connection to the AWS IoT Endpoint for a user's account
# By creating an AWS IoT Thing device, certificate, keys, and policy
# Then connecting to the AWS IoT Core Endpoint with those device credentials
# Tests both port 8883 and 443
#
# Created on 2019-09-20 by Noah Coad, Amazon AWS ProServe IoT, ncoad@amazon.com
# All rights reserved.
#
# can also be used to create a new IoT device, or remove old ones
@noahcoad
noahcoad / install_aws_ssm_agent_on_raspberry_pi_for_ssh_access.md
Last active June 5, 2020 02:10
Install AWS SSM Agent on Raspberry Pi for SSH Access

Install AWS SSM Agent on Raspberry Pi for SSH Access

AWS Systems Management (SSM) Agent enables you to remotely monitor, update, configure, and SSH into a machine from anywhere, without needing to know it's IP address. Very handy when using Raspberry Pi's across networks.

@noahcoad
noahcoad / index.md
Last active May 20, 2024 22:19
Noah Coad's Index of Gists, Labs, and Articles

An Index of Noah Coad's Labs and Gists

Articles / Content

@noahcoad
noahcoad / get_started_aws_chalice_on_mac.md
Last active January 24, 2023 05:36
Get Started with AWS Lambdas using AWS Chalice on Mac

Get Started w AWS Lambda
Using AWS Chalice on Mac