Find Unnecessary Homebrew Packages with "brew leaves"

Use the ‘brew leaves’ command to find potentially unnecessary Homebrew packages.

 · Updated  · 1 min · 121 words

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 · 583 words

Optional Type Hints in Python

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

 · Updated  · 3 min · 436 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  · 2 min · 234 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 · 101 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 · 241 words

Automatically Delete Development Logs in Ruby on Rails

How to automatically delete development logs in Ruby on Rails.

 · Updated  · 1 min · 188 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  · 3 min · 597 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  · 6 min · 1215 words

Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

 · Updated  · 3 min · 444 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  · 7 min · 1467 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  · 1 min · 188 words

Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

 · Updated  · 1 min · 199 words

Restricting Ruby on Rails Routes with :only and :except

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

 · Updated  · 2 min · 246 words

Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

 · Updated  · 2 min · 309 words