Author: matt
-
Dynamically Macro A Class To A Laravel Macroable Class
Laravel Macros I was recently working on a project where I wanted to make a classes functions available inside of the built in Laravel Str:: helper. Laravel Macros are the answer to this issue. However, I wanted to make adding additional methods an easy experience and needing to write and maintain a separate macro with…
-
Certbot HTTP Verification Debugging Details
Ran across a fun issue with Let’s Encrypt and certbot today. The issue at hand seemed straightforward at first: we were attempting to create a new SSL certificate via Let’s Encrypt but kept hitting a wall with the http validation process. For those unfamiliar, Let’s Encrypt utilizes a simple challenge-response mechanism to verify domain ownership.…
-
Quick Tip: Locate Tags in Git with a Specific Commit
Need to find which tags in your project contain a specific commit ID? I recently need to do this to find out when a specific bug fix (commit ID: abc123) was released in a project. Simply enter: Git will then list all the tags that include the bug fix, helping you identify the release times…
-
Quick Tutorial: How to Manually Test an AWS CloudWatch Alarm Without Triggering It
At times, you may have set up a CloudWatch alarm that you don’t want to trigger, but you still need to ensure that the actions tied to it function correctly. This tutorial will guide you through a simple command to test your CloudWatch alarm manually without actually setting it off. Step-by-Step:
-
When “rm *” doesn’t work
We’ve all deleted files in a folder using rm *. But have you ever had it not work you might have come across an error like this: What’s happening here? Well, this is a consequence of the Linux kernel’s limitation on the number of arguments that can be passed to a command via the exec…
-
Initial Thoughts On Arc Browser
I’m coming from Firefox as my default browser. What I like: What I don’t like:
-
Optimizing Permission Rewriting in Ansible
I was recently working on speeding up an Ansible playbook and found this task that was running slowly. This task runs the find command for all files in a specific directory and recursively executes the chmod command on them. The issue is with a directory thousands of files we end up executing thousands of chmod…