Blog

Finding the most and least frequent list elements in JavaScript

February 3, 2022

Finding the most and least frequent list elements in JavaScript
The Problem I love working through the Advent of Code puzzles, this year I decided it was a good opportunity to learn some JavaScript. Having only ever done some very basic stuff with JS before, there’s no time like the present I quickly found some things ive become used to in Python were just not a thing in this foreign land.

Triggering a Cloudflare Cache Purge from S3 Object Events

September 18, 2021

The Challenge I’ve have been looking at some cost and performance improvements in some of my infrastructure. This particular environment is essentially a handful of websites which use some shared static assets that reside in an S3 bucket think assets.website.com which is used by website.co.uk, website.nl and website.ie. These websites are currently all running through Cloudflare’ CDN service, but this assets cache is fronted by AWS Cloudfront.

CI/CD Agnostic, mono-repo pipelines for Firebase (Hosting, Database & Functions)

June 1, 2020

CI/CD Agnostic, mono-repo pipelines for Firebase (Hosting, Database & Functions)
Introduction I have been trying to teach myself how to build a simple Node.JS API with a NoSQL backend. A few of my colleagues mentioned that Google’s Firebase is probably the easiest place to start and off I went. In my day to day life I’m more in with the Ops side of the DevOps culture; I mostly focus on watering and feeding infrastructure, building pipelines for deploying stuff our devs have written or tinkering with existing workflows.

Unified authentication with AWS Cognito!

September 26, 2019

Attempts to minimise the number of credentials required is becoming more and more common, particularly with the adoption of social logins. Many well known services are backing off their authentication mechanisms to Google, Facebook, GitHub etc and passing a session token back to the initial site. This greatly reduces the number of passwords someone needs to remember and allows things like MFA to be implemented easily without small sites/service having to invest the engineering time in building out their authentication mechanisms and maintaining them.