CLOUDFRONT FUNCTIONS WITH DYNAMIC ORIGIN POINTING TO ANOTHER CLOUDFRONT
At re:Invent 2024, CloudFront Functions introduced new features, including the ability to dynamically change the origin host.
HOME ASSISTANT WITH DSM7
https://gist.github.com/maeneak/851e883eca7cddd7114f7eaed201ca9d has a pretty good guide in there.
Create a data directory & docker-compose file:
RUN A DEBUG PROB IN A KUBERNETES CLUSTER WITH GATEKEEPER
When attempting to run kubectl debug <node> -it --image=<image>
blocked due to gatekeeper, you can do about the same with normal kubectl run
command like below:
CAPTURE BASH COMMAND ERROR IN FILE
Neat trick to capture STDERR into a text file for the next command but also exit with the preserved exit code after then.
LOOKUP CMK FOR A TEST IN CDK
Add a CMK in CDK was easy, then when I looked into a way to reference the resource using findResources
, faced constant failure as for some reason CDK can’t really pickup the key based on the alias.
EXTRACT TLD FROM STRING BY BASH
Faced this interesting use case when I need to extract TLD from the provided hostname string.
OLD TWITTER DELETER
My new personal project automatically clean up old tweets.
ADD HTTP AUTH USERNAME INTO ENVOY PROXY LOGGING
Oddly couldn’t find any useful copy & paste solution for this.
SONY WH-1000XM4 NOISE ISSUE
My less than 6m old Sony WH-1000XM4 suddenly started making wind like static noise from the right side only.
FARGATE CONTAINER HEALTHCHECK
Long story in short, unlike what https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html suggests, fargate doesn’t have curl.