Hey there!

Welcome to where I share what I've learned over the years. You'll find little tidbits of experience that I have come along through experience. If you find anything that could be improved please let me know.

My docker command reference

About

I'm not going to go on about the inner workings of docker. There are pleny of posts/tutorials that cover that. Instead this is meant to be a practical guide on how to use docker. However, there is one thing to note, docker has multiple parts, eg. compose, image, context, docker itself....

Helpful Notes: Recovering from a failed RAID drive

This is a work in progress as I'm currently recovering my RAID array on my custom built, 10+ year old NAS.

Context

There is a DIY Linux RAID server with a failed drive. What steps should be taken and what tools are helpful in fixing the problem.

BACKUP FIRST!

Before you do...

Importing apps with pytest

Something that I couldn't figure out was how to import my app so that I could test it with pytests. Isolated tests would work, but anytime I tried to import something from my app like so

from app.main import app
from fastapi.testclient import TestClient

client = TestClient(app)

def test_root():
    response =...

Setting up a Postgres Database for Rails (but not necessarily)

This is geared toward debian linux users.

Connecting to Postgres and looking around.

  • Log into your postgres instance with sudo -u postgres psql
  • You should see the psql prompt
~/repos/chorelist$ sudo -u postgres psql
psql (14.6 (Ubuntu 14.6-0ubuntu0.22.04.1))
Type "help" for help.

postgres=#
  • \?: list of possible commands and short descriptions. This should be...

2023-02-06 Update

The last year or so has been bumpy. I changed jobs, twice. Went from Ruby on Rails back to Python. Emerged from a pandemic. Neglected my health a little and learned some things. This is still ongoing, nothing serious though. Saw coworkers get let go, some that even helped me...

Last updated: 2025-04-22 13:55:10 UTC