Skip to content

Instantly share code, notes, and snippets.

Avatar
🐺
Building IoT projects

Mark Wolfe wolfeidau

🐺
Building IoT projects
View GitHub Profile
@wolfeidau
wolfeidau / customers.json
Last active Oct 8, 2022
Apache Arrow Write Example
View customers.json
{
"customers": [
{
"customer_id": "c7281d12-9ea0-4574-b41a-3a6de5aba119",
"name": "Party Foods",
"created_date": "2022-08-23T22:18:31.445Z"
}
]
}
@wolfeidau
wolfeidau / gitprompt.sh
Created May 1, 2022
Some code i use to configure my git prompt
View gitprompt.sh
source /usr/lib/git-core/git-sh-prompt
# export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM=verbose GIT_PS1_DESCRIBE_STYLE=branch GIT_PS1_SHOWCOLORHINTS=1
export GIT_PS1_HIDE_IF_PWD_IGNORED=1
# Colorful prompt for Bash!
export PS1='\[\e[0;36m\][\A] \u@\h:\[\e[0m\e[0;32m\]\W\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[0;37m\] \$\[\e[0m\] '
@wolfeidau
wolfeidau / template.yaml
Last active Mar 8, 2022
Firehose to datadog
View template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: "wolfeidau: Notifications stream which sends events to datadog"
Parameters:
Environment:
Type: String
AllowedValues: [prod, nonprod]
DatadogHttpEndpointUrl:
Type: String
Default: https://aws-kinesis-http-intake.logs.datadoghq.com/v1/input
@wolfeidau
wolfeidau / notes.md
Created Nov 23, 2021
APIGW HTTP API linking lambda and APIGW logs.
View notes.md
@wolfeidau
wolfeidau / microservices.md
Created Oct 28, 2021
Some notes on microservice resources.
View microservices.md
@wolfeidau
wolfeidau / Muffins.md
Last active Aug 2, 2021
This is my customised muffin recipe
View Muffins.md
@wolfeidau
wolfeidau / main.go
Created Jul 19, 2021
Simple app which copies files to S3 with content type and modtime
View main.go
package main
import (
"context"
"fmt"
"io/fs"
"mime"
"os"
"path/filepath"
"time"
@wolfeidau
wolfeidau / Dockerfile
Last active Mar 14, 2021
Example multi-stage build container used with lambda docker support
View Dockerfile
#
# Based on https://docs.docker.com/develop/develop-images/multistage-build/
#
FROM public.ecr.aws/amazonlinux/amazonlinux:latest AS builder
WORKDIR /src
RUN yum install go -y
RUN yum install make -y
ADD . /src
View deploy.yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: >-
wolfeidau: Cloudformation deployment bucket used to host Serverless Application Model (SAM) artifacts and publish to Serverless Application Repository (SAR)
Parameters:
Stage:
Type: String
Description: The stage where the application is running in, e.g., dev, prod.
Default: "dev"
@wolfeidau
wolfeidau / template.yaml
Created Jan 26, 2021
template.yaml created by the sam CLI when you select create new project with docker + lambda
View template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
python3.8
Sample SAM Template for wolfe-python-app
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function: