Category: post
-
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…
-
A Dark Sky Replacement – MerrySky
With Apple killing off Dark Sky, I was looking for a replacement and happened across Mary sky. It seems like a pretty darn good replacement for dark sky with an almost clone-like interface. The app is powered by the pirate weather API, so the data source is a bit different than dark skies homegrown weather…
-
Adding a Hotkey Pulldown Terminal On My Mac
I’ve had issues effectively managing a large number of terminal windows on my Mac in the past and I’ve finally arrived at an effective solution. The solution does require switching to iTerm2. Once I had iTerm2 setup. Here’s how I configured things for myself. Under Preferences > Keys > Hotkey I created a new HotKey…
-
Jack’s kinda right?
Jack Dorsey just wrote up a little piece on where he sees the future of content on the web going. I saw a few hot takes that seemed like they might be taking things out of context. Which I think they kind of were. So, go read it for yourself. This is the part that…