Skip to content

Instantly share code, notes, and snippets.

@noahcoad
noahcoad / aws_iot_use_custom_root_ca.md
Last active September 27, 2023 10:56
AWS IoT: Use a Custom Root CA
@noahcoad
noahcoad / GoAwayModalDialogs.ahk
Created January 3, 2013 21:04
Automates away pesky modal dialogs.
; ==========================================================================================
; == Modal Dialog Automation
; ==
; == Automates away pesky modal dialogs by applying a default response when they pop up
; == Helper functions are at the bottom
; ==========================================================================================
; Defaults to fast no-regex title matching
SetTitleMatchMode, 2
//
// Example of using ESP32 Arudino mbed library to
// Encrypt and Decrypt using an asyncronous RSA 2048 bit public and private key pair
// created 2020-07-05 by Noah Coad
//
// Inside a "data" directory, run these commands to generate a key pair
// then use the ESP32 Sketch Data Uploader to upload files to ESP32 SPIFFS files
//
// openssl genrsa -out private-rsa 2048
// openssl pkcs8 -topk8 -inform pem -in private-rsa -outform pem -nocrypt -out private
@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

//
// Magnetic Card Reader with ESP32 Arduino
// Created on 2020-06-13 by Noah Coad
//
// Connect card reader cable to ESP32 pins:
// DATA (yellow) = 15, PRESENT (orange) = 14, STROBE (green) = 32
//
// I'm using Adafruit HUZZAH32 ESP32 Feather Board, but any ESP32 should work
// And the Magtek 21050071 card reader, which reads the 2nd card track only (encoded in 5 bits)
// Double check your card reader, which track(s) it reads, because track #1 is encoded differently
@noahcoad
noahcoad / install_mongoose_os_mos_cli_tool_on_raspberry_pi_rpi.md
Created January 27, 2021 00:17
There isn't a build of the Mongoose OS mos cli tool for a Raspberry Pi provided, so this shows how to build the tool on an RPi

Install Mongoose OS mos CLI Tool on Raspberry Pi RPi

I enjoy seeing how little my dev environment can actually be to accomplish cool stuff. Currently I'm using a terminal app on my iPhone to remote into a RPi0w connected to an ESP8266 dev board to code and program the ESP8266 'from my iphone'. Mongoose OS is a fantastic OS for the ESPxx family line, with it's super easy interface and tons of built-in support into the OS (configuration, common IoT platforms, event-driven javascript, libraries, etc).

@noahcoad
noahcoad / whenVisible.js
Last active November 9, 2021 09:43
Utility function for Tampermonkey and Greasemonkey scripts to detect and handle AJAX elements and single page apps, waiting until elements exist and become visible
//
// Description
// whenVisible(): a utility function for Tampermonkey and Greasemonkey
// scripts to detect and handle AJAX elements and single
// page apps, waiting until elements exist and become visible
//
// Created
// 2021-10-01 by Noah Coad http://coad.net
//
// Usage Example
@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 / 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)"
#!/bin/bash
# 2021-04-28 by Noah Coad
# simple bash script to turn the Mac OSX volume up, down, get value, or set
# vol = get current volume level
# vol u = volume up by 5%
# vol d = volume down by 5%
# vol 25 = set volume level between 0-100
re='^[0-9]+$'
dir=