Snippets Showcase

Tips and code to solve specific problems. No fluff. Easy to copy and paste.

NameDescriptionTagsPublished
Cleaning local docker cacheDifferent options to prune docker resources from your local machinedockerJun 2021
Access RDS logs in CloudWatch using awslogsLeverage awslogs command line to get RDS logs stored in CloudWatchawslogs aws cloudwatchMay 2021
Delete git branches no longer present in remoteStep-by-step using Powershell to automate the processgit powershellMay 2021
Database dump from a MySQL podSteps to create the dump using the kubectl clikubectl mysql kubernetesMay 2021
File option positioning in tar commandSolves 'Cannot stat: No such file or directory' errortar shellMay 2021
Add a python package in an existing non-python alpine imageStep-by-step of how to install python and pip from apkdocker alpine pythonMay 2021
Checkout from and push to existing branch in a forkStep-by-step instructionsgitMay 2021
Mismatch with AWS ACM certs validation record in Cloudflare DNSFix terraform plan always updating ACM validation records in Cloudflareterraform aws cloudflareApr 2021
Terraform and AWS wildcard certificates validationDNS validation for AWS wildcard certificates using Terraformterraform awsApr 2021
Delete multiple CRDs with PowerShell and kubectlAvoid manual deletion of each CRD object with the help of PowerShellkubectl powershell kubernetesApr 2021
AWS CLI v2 in a Debian-flavored docker imageHow to install the AWS CLI in a Debian-flavored docker imageaws dockerApr 2021
Smaller images using multi-stage builds in DockerProduce smaller docker images by leveraging multi-stage builds in DockerfilesdockerApr 2021
Install development tools in alpineFix building gem native extensions by installing build-base in alpine docker imagedocker rubyApr 2021
Download files from URLsUsing the ADD instruction to download files from URL in a dockerfiledockerApr 2021
Dynamic FROM base imagesGenerate docker images that only differ on their base imagedockerMar 2021
Case sensitive changes in gitAllow git to detect a file rename as a change to be committedgitMar 2021
Unprotected private key fileSolve unprotected private ssh key file error due to permissionssshMar 2021

Different options to prune docker resources from your local machine

Leverage awslogs command line to get RDS logs stored in CloudWatch

Step-by-step using Powershell to automate the process

Steps to create the dump using the kubectl cli

Solves 'Cannot stat: No such file or directory' error

Step-by-step of how to install python and pip from apk

Fix terraform plan always updating ACM validation records in Cloudflare

DNS validation for AWS wildcard certificates using Terraform

Avoid manual deletion of each CRD object with the help of PowerShell

How to install the AWS CLI in a Debian-flavored docker image

Produce smaller docker images by leveraging multi-stage builds in Dockerfiles

Fix building gem native extensions by installing build-base in alpine docker image

Using the ADD instruction to download files from URL in a dockerfile

Generate docker images that only differ on their base image

Allow git to detect a file rename as a change to be committed

Solve unprotected private ssh key file error due to permissions