Skip to content

Instantly share code, notes, and snippets.

View wolfeidau's full-sized avatar
🐺
Building data science projects

Mark Wolfe wolfeidau

🐺
Building data science projects
View GitHub Profile
@wolfeidau
wolfeidau / README.md
Last active November 19, 2018 01:19
SSM CFN Templates which build an AMI from the RHEL base image provided by AWS.

SSM AMI Build

These templates provide the roles, and a document to build AMIs using SSM Automation.

The require:

  1. A VPC with some public subnets, in my case I am just using a default VPC.
  2. The AMI ID of the RHEL base image, this is tested with 7.2 and up.

To get the latest AMI you can run the following command.

@wolfeidau
wolfeidau / sam.md
Created May 9, 2018 16:57
Install sam from scratch on osx with homebrew.

To setup sam local on an OSX system which is using homebrew.

Check if pip installed.

pip --version

If this returns.

@wolfeidau
wolfeidau / main.go
Created December 7, 2017 00:29
Example of a more complex kingpin setup.
package main
import (
"fmt"
"os"
"github.com/alecthomas/kingpin"
)
var (
@wolfeidau
wolfeidau / ecs-cluster-userdata.sh
Created September 11, 2017 01:57
cloudwatchlogs setup userdata script
#!/bin/bash -e
yum update -y
yum install -y aws-cfn-bootstrap git aws-cli
# Install the files and packages from the metadata
/opt/aws/bin/cfn-init -v --stack "{{ aws_stack_name }}" \
--resource ECSInstanceLaunchConfiguration \
--configsets ConfigCluster \
--region "{{ ref('AWS::Region') }}"
@wolfeidau
wolfeidau / setup.md
Last active August 13, 2017 02:57
Setup beaglebone blue

Remove all the crap off this image.

apt remove bone101 bonescript nodejs bb-node-red-installer apache2

Install NTP

apt install ntp -y
@wolfeidau
wolfeidau / deploy.sam.yaml
Created July 17, 2017 10:28
SAM deployment file for cognito API
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Parameters:
EnvironmentName:
Type: String
EnvironmentNumber:
Type: String
CognitoUserPoolArn:
Type: String

The following command is used to stream data from an Odroid 720p Webcam on an Odroid XU4 SBC.

This USB2 camera is located at /dev/video6.

The samsung CPU has a device which can do h264 encoding this is located at /dev/video10 and /dev/video11, I am currently using v4l2video11h264enc gstreamer plugin to use it.

ip_addr=192.168.1.1
@wolfeidau
wolfeidau / aws_datamigration_service.md
Last active April 28, 2017 10:58
Conversation on viewsource slack about postgresql and AWS datamigration service.
@wolfeidau
wolfeidau / weatherstation.ino
Created February 18, 2017 00:28
ESP32 weather station
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define SEALEVELPRESSURE_HPA (1013.25)
// For the ESP-WROVER_KIT, these are the default.
@wolfeidau
wolfeidau / screentest.ino
Created February 16, 2017 19:55
Graphics test for the ESP-WROVER-KIT v2
/***************************************************
This is our GFX example for the Adafruit ILI9341 Breakout and Shield
----> http://www.adafruit.com/products/1651
Check out the links above for our tutorials and wiring diagrams
These displays use SPI to communicate, 4 or 5 pins are required to
interface (RST is optional)
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!