writer://

October 25, 2024

Why You Need an HPA for Every Container

HPA = Horizontal Pod Autoscaler. POD You need to configure resource request values for all of your containers in Kubernetes because HPA makes scaling decisions based on those values. It makes those...

Read

October 10, 2024

State Software Design Pattern

The State Design Pattern is a behavioral design pattern that allows an object to change its behavior when its internal state changes. This pattern is particularly useful when an object needs to...

Read

October 9, 2024

PHP Storm Ideavim File

Note: Need to restart PHP Storm after any change to take effect. I couldn't get the Action(<action>) syntax working but the :action <action> works fine....

Read

October 9, 2024

RBAC, ABAC, Roles & Permissions

Roles vs Permissions Set permissions to roles and assign roles to users. Don't assign permissions directly to users. Create a permission, like "can view page". Assign that permission to a role,...

Read

October 8, 2024

AWS Policy Elements

Some elements of an AWS policy include: SID (optional): Statement ID used to identify the purpose of the policy statement, especially with a policy with multiple statements. Version: There are only...

Read

October 8, 2024

Package Managers

Here’s a detailed table summarizing popular package managers and their key features, along with links to their official resources: Package Manager Software Ecosystem Versioning...

Read

October 7, 2024

Kubernetes Hierarchy

Hierarchy: Cluster (parent) --- Nodes Group (collection of machines) ----- Node (machines) ------- Pods (workload units on nodes) --------- Containers (running applications) Think of the Node as...

Read

September 29, 2024

Examples of Abstraction in the Real World

The reason we can even use things in this modern world is because of abstraction. No single person could know how everything we use on a daily basis works, much less how they were made in the first...

Read

May 25, 2024

xargs tips

XARGS things to remember xargs -p will show the command find . -name "foo" -print0 | xargs -0 (<<< print0 null, xarg uses null instead of space, in case file...

Read

May 24, 2024

Code Coverage VSCode With PHPUnit

Need: Get some code coverage up for unit tests in vscode. PHPUnit can handle outputting the necessary coverage information. Coverage Gutters can read the outputting coverage file (in xml). I'm...

Read