Skip to content

Instantly share code, notes, and snippets.

View mikebway's full-sized avatar

Mike Broadway mikebway

View GitHub Profile
@mikebway
mikebway / ddbevent.go
Last active October 4, 2022 17:50
Golang DynamoDB CDC stream Lambda support for unmarshalling record images to custom structure types
package ddbevent
import (
"fmt"
"github.com/aws/aws-lambda-go/events"
)
// Why This Is Needed
// ==================

Kubernetes Reminders

A list of things I will forget if I don't use Kubernetes for a week.

Command Line Completion

Command line completion capabilities can be establish for both Bash and ZSH shells using the kubectl completion command. Executing the following will dump the completion configuration script to a file that can then be reference by your .bashrc setup script or equivalent.

@mikebway
mikebway / AWS-CLI-Crib-Sheet.md
Last active December 14, 2019 05:55
AWS CLI Crib Sheet

AWS CLI Crib Sheet

I might go for several months without accessing my personal AWS account configuration, then when I need to do something I find that I have forgotten how to do even the most basic of things. I created this crib sheet to save me from having to learn it all from first principles every time (especially that MFA tempoarary access token part that bites me again and again).

Check the AWS CLI Version

The latest available version can be found here:

@mikebway
mikebway / RemoveGitHubPackages.md
Last active January 6, 2020 14:09
Removing GitHub Packages with GraphQL

Using GraphQL to Remove GitHub Packages

This is easily done with GraphiQL installed as an application on your laptop but any tool that allows HTTP headers to be easily configured will work.

NOTE: You Remove Package Versions not Packages Themselves

GitHub provides no mechanism (at the time of writing) to remove packages as such, but removing all of the versions of a package has the equivalent effect. You may have to repeat the delete package version operation many times but in the end, the package will be gone and consume no more of your package space allocation.