Skip to content

Instantly share code, notes, and snippets.

@jhw
jhw / .APIGW_DEMOS.md
Last active May 15, 2024 18:14
APIGW demos

A collection of APIGW demos (v1 and v2)

@jhw
jhw / .CODEBUILD_DOCKER_IMAGE.md
Last active May 17, 2024 05:05
How to build a Docker image (Bert Word Alignment model) on Codebuild

How to build a Docker image (Bert Word Alignment model) on Codebuild

So as to ensure the the container gets build on Amazon Linux

@jhw
jhw / .SUNVOX_EUCLIDIAN_BEATS.md
Last active May 7, 2024 08:09
Euclidian beat generator rendered with the aid of Sunvox and Radiant Voices
@jhw
jhw / .BERT_WORD_ALIGNMENT.md
Last active May 14, 2024 09:01
How to use the BERT model in the transformers package to solve the word alignment problem

I am basically totally fed up with Docker and Sagemaker at this point

I have finally managed to create a local Docker contain whichg conforms to the expected Sagemaker interface - ie has /ping [GET] and /invocations [POST] endpoints, and has a serve executable in /usr/local/bin which starts a webserver

I then created a Sagemaker model/endpoint_config/endpoint combo using boto3

However endpoint creation fails due to

exec /usr/local/bin/serve: exec format error
@jhw
jhw / .DYNAMODB_PATTERN_DEMOS.md
Last active April 30, 2024 09:54
One to many relationships in a single table world with DynamoDB

Some sample DynamoDB usage patterns, one branch for each

@jhw
jhw / .WORD_ALIGMENT_DEMO.md
Last active April 19, 2024 20:25
Test of the word alignment problem using AWS Translate and Comprehend

hello world

@jhw
jhw / .CLOUDWATCH_ALARM_DEMO.md
Last active April 3, 2024 06:14
Lambda Cloudwatch Alarm demo

hello

@jhw
jhw / .EVENTBRIDGE_TIMER_DEMO.md
Last active April 2, 2024 14:31
Eventbridge timer demo, pushing confirmations to Slack

hello

@jhw
jhw / .PIP_BUILDER_DEMO.md
Last active April 1, 2024 16:10
Building a pip package with AWS Codebuild and capturing EventBridge notifications

hello

@jhw
jhw / .APIGWV2_WEBSITE_TEST.md
Last active March 30, 2024 18:56
Can you replicate an APIGWV1 website pattern with APIGWV2?

hello