writer://

July 11, 2025

Objects That: Have State vs Do Work

I'm self taught at developing. Been at it for a long time, but I've missed some of the pivots the world of developers - PHP specifically - have done, and when classes were introduced back in PHP 4,...

Read

July 10, 2025

PHP - How to Turn an Array into a PDO-Safe IN Query

In code using legacy PDO-style statements, if you need to do something like an "IN" query using user-supplied data, you're in for danger if you don't parameterize them. PDO can handle the security...

Read

July 1, 2025

MySQL - How to Show Data and Index Size in your Tables

How to show data and index size in your mysql tables.

Read

June 12, 2025

Why Change to AWS Amplify?

I had been running this blog on AWS S3. You can do some weird gyrations when you set up a bucket a specific way and it will let you serve a static website really easily. I used a WP static plugin for...

Read

April 28, 2025

Run Owasp Zap in a Docker container

Run as daemon mode: Desktop UI: Then go to http://localhost:8080/zap. Use https://host.docker.internal to hit https://local..com Baseline scan: Full scan: Find container's IP: Use...

Read

April 28, 2025

Kubernetes CoreDNS Notes

Some notes to help me remember some Kubernetes items: Core DNS handles all of the DNS internally. If it's not in CoreDNS then it checks the external network. ClusterIP means it's only accessible...

Read

April 28, 2025

How to Intercept Sockets Using Playwright

Intercept sockets using playwright with dev console trick.

Read

April 23, 2025

Check Whether an AWS VPC is Being Used

If you need to check whether a VPC is being used -- you do not want to delete a VPC if it is being used, you can double-check it with this command:

Read

April 23, 2025

Writing to stdout/stderr in Docker / Kubernetes

Recently I was testing some log aggregation, and I needed to write data to stdout/stderr so that the logging agent could send them to the aggregator. Here's a snippet of code to run that for awhile...

Read

March 10, 2025

Cloudflare API Example in bash/curl

Cloudflare API Example in bash/curl. This particular script was a proof-of-concept to disable a cache rule.

Read