馃挕 AWS CDK: Multi-Stage API Gateway APIs with Lambda Integration using Stage Variables

When building APIs using AWS API Gateway backed by AWS Lambda functions, there鈥檚 a common pattern for creating separate development and production environments. Multiple stages (e.g., dev and prod) are created for the API. The name of the Lambda function (or its alias) to call for serving requests is stored in a stage variable. While building an AWS CDK stack, I found implementing this pattern surprisingly difficult, and it took me quite a while to find a solution....

October 3, 2024 路 2 min 路 407 words 路 Botond

馃挕 TIL how to select N random lines from a file on the command line

I鈥檝e just learned how to select N random lines from a file on the command line: shuf -n 10 file.txt This is amazing. I鈥檝e been using Linux for years and I had no idea this was so easy.

May 1, 2023 路 1 min 路 38 words 路 Botond