AWS SSM: Run a Shell Command Against Multiple EC2 Instances

How to run a shell command against multiple EC2 instances using AWS Systems Manager

 · Updated  · 3 min · 628 words

Optional Type Hints in Python

Comparing Optional[str] vs str | None syntax in Python v3.10+ with practical examples.

 · Updated  · 3 min · 528 words

Hitting Back at Ledger Scammers With Python

Using a Python script to send fake data to a Ledger phishing site.

Getting EC2 Instance Metadata Using IMDSv2

Curl examples for retrieving EC2 instance metadata using IMDSv2 including IP address, instance ID, and security groups.

 · Updated  · 3 min · 573 words

Company Missions are Bullshit

Every company’s real mission is to make money.

 · Updated  · 1 min · 93 words

How to Determine the Entrypoint for a Docker Image

Using docker inspect to determine the entrypoint for a given docker image.

 · Updated  · 1 min · 139 words

Publishing Fake AWS API Keys on My Site

Using canarytokens.org to generate fake AWS API keys and then publishing them on my site.

 · Updated  · 2 min · 248 words

Automatically Delete Development Logs in Ruby on Rails

How to automatically delete development logs in Ruby on Rails.

 · Updated  · 2 min · 372 words

Delete All node_modules Directories Recursively in macOS and Linux

How to delete all node_modules directories recursively in macOS and Linux systems.

As an Employee, You Are Disposable

Companies are willing to lay off employees despite being profitable.

 · Updated  · 3 min · 469 words

My Donation Earnings Over the Past Year

My donation earnings on buymeacoffee.com over the past year.

 · Updated  · 1 min · 105 words

How To Install Older Versions of Homebrew Packages

How to install a specific version of Homebrew packages.

 · Updated  · 4 min · 713 words

Redirect One Domain to Another Using AWS S3 and CloudFront

How to redirect a domain to another one using AWS S3, ACM, and CloudFront

 · Updated  · 7 min · 1300 words

Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

 · Updated  · 4 min · 640 words

Hosting a Static Website on AWS Using S3 and CloudFront

How to host a static website on Amazon Web Services using S3, CloudFront, ACM, and Route 53

 · Updated  · 8 min · 1486 words

How to Enable Manual Runs of GitHub Actions Workflows

Add workflow_dispatch to your GitHub Actions YAML to enable the ‘Run workflow’ button.

 · Updated  · 2 min · 227 words

Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

 · Updated  · 2 min · 345 words

Restricting Ruby on Rails Routes with :only and :except

How to restrict Ruby on Rails routes with :only and :except.

 · Updated  · 2 min · 369 words

Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

 · Updated  · 3 min · 491 words

Fix Devise Errors in Ruby on Rails 7

How to fix Devise errors in Ruby on Rails 7.

 · Updated  · 3 min · 550 words