writer://

December 23, 2023

How to disable warning that MacOSX switched to zsh

To avoid this message: Add this to ~/.bashrc: From Stackoverflow

Read

December 21, 2023

Binary Math

Binary math is base 2. Our normal everyday numbering system is a base 10. Instead of 10 numbers (0-9), you can only have a value of 0 or 1. Take 00101101 = (0 * 2^7) + (0 * 2^6)...

Read

November 29, 2023

Fix Links in Devtools Console

So, I'm right now working on moving hansanderson.com from a Wordpress-to-static S3 site to a Laravel Jigsaw-to-static S3 site. During this, I found that while my WP docker setup had my test lcl site...

Read

June 18, 2023

Reminder about PHP TS vs NTS

From PHP Documentation: Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows. Thread Safety works by creating a local storage copy in each...

Read

May 7, 2023

Useful Git Snippets

Pull without going thru all the SSL self-signed BS but also not permanently overriding it. I used this a few times on a client network with a self-signed cert in the chain but no time to update the...

Read

March 17, 2023

Find, based on Time

GAME. CHANGER. newerBt is “birth time” where newerCt is “change time” which doesn’t find things being copied around. WOOHOO!!! (newermt!)...

Read

December 21, 2022

Bitwise Operators

If both binary numbers have a 1 in the same place, it's a 1. If one place has a 1 and one place has a 0, in & you keep the...

Read

December 8, 2022

Basic but Useful SSL Expiration Date checker

At an old job, every now and then we'd have a fire drill because, despite it being a large, capable organization, no one seems to track when an SSL cert expires. So, I created this little script to...

Read

November 18, 2022

Finding Your Public IP Address

How to find IP of my router (public IP). There is no way to do it with ifconfig, etc. That will only show local network stuff, and the internal network apparently doesn't know what it's public IP...

Read

October 30, 2022

Javascript Promises, Async and Await

As always: This is for my own understanding. Please don't assume it is 100% correct. await pauses the execution of an async function until the awaited promise resolves...

Read