How to Enable Manual Runs of GitHub Actions Workflows

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

2022-12-27 ·  · 2 min · 234 words
Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

2022-12-04 ·  · 2 min · 383 words
Restricting Ruby on Rails Routes with :only and :except

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

2022-12-03 ·  · 2 min · 376 words
Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

2022-11-17 ·  · 3 min · 550 words
Fix Devise Errors in Ruby on Rails 7

How to fix Devise errors in Ruby on Rails 7.

2022-11-16 ·  · 3 min · 573 words
Set a Default Ruby Version with Ruby Version Manager (RVM)

Set a default Ruby version using RVM with rvm –default use

2022-11-06 ·  · 1 min · 50 words
Ignore Files Across All Subdirectories in .dockerignore

How to recursively ignore files when building Docker images.

2022-11-01 ·  · 1 min · 108 words
Adding Environment Variables to Serverless Functions

How to add environment variables to Serverless functions

2022-09-10 ·  · 2 min · 282 words
Scrape Contributor Emails From Any Git Repository

Scraping contributor emails from git repositories using git shortlog.

Using Python to Flood Scammers with Fake Passwords

Creating a python script to flood scammers with fake credentials.

Finding AWS Resources by IP Address

Ways to find AWS Resources by private or public IP addresses.

2022-06-12 ·  · 5 min · 918 words
Replacing AWS ACM SSL Certificates With No Downtime

Updating Amazon Certificate Manager SSL certificates with no downtime

2022-06-12 ·  · 1 min · 160 words
Invoking Amazon API Gateway with an API Key

How to pass an API key via the x-api-key header when invoking AWS API Gateway with curl and Python.

2022-06-06 ·  · 2 min · 229 words
NGINX: Difference Between ~ and ~* Tildes

~ for case-sensitive matching vs ~* for case-insensitive pattern matching in location blocks.

2022-06-06 ·  · 1 min · 59 words
Retaliating Against MetaMask Scammers With Python

Using Python to send fake seed phrases to a MetaMask scam site.

Getting EC2 Instance Metadata Using IMDSv1

How to get EC2 Instance metadata using IMDSv1

2022-02-08 ·  · 2 min · 426 words
Scraping GitHub Contributor Emails

Scraping GitHub contributor emails, and how you can protect yourself.

Resolving AWS CloudFront Access Denied Errors

Resolving Access Denied Errors in a CloudFront Distribution that uses a Private S3 Bucket, Origin Access Identity, and Contains Multiple index.html Templates.

2021-07-25 ·  · 2 min · 422 words
AWS IAM: Allowing a Role to Assume Another Role

How to allow an IAM Role to assume another Role.

2021-06-19 ·  · 2 min · 348 words
Uniqueness Constraint Between Two Columns in Rails

Add a uniqueness constraint between two columns in Ruby on Rails.

2021-05-11 ·  · 2 min · 403 words