Ben Wyrosdick
Personal & Techical Blog
Hosting Rails apps from a 2012 Mac mini with Arch, Docker, and Kamal
I had a 2012 Mac mini sitting in a drawer doing nothing — quad core i7, 16 GB of RAM, an SSD I dropped in years ago. macOS no longer supports it, but the hardware is more than enough to run a handful of personal apps. So I wiped it,…
Getting Started with Raspberry Pi
I have watched Raspberry Pi projects and been fascinated with what you could do with a Pi since I listened to Ron Evans from the Hybrid Group http://hybridgroup.com/ talk about teaching kids ruby with a raspberry Pi at GoGaRuCo in 2011. And even with the ridiculously low price point of…
Backing Up With Rsync
There is no shortage of backup tools available that take care of backing up your data and storing it securely online or in an offsite location. I use backblaze https://secure.backblaze.com/r/00gjwd for my personal computers. Even with that I think it is important, and sometimes useful, to understand how that mechanism…
Adding Swap to a Linux Sytem
I find myself needing to do this all the time and have to go search for a good artcile to remember all the commands. I often go back to this https://www.digitalocean.com/community/tutorials/how to add swap on ubuntu 14 04 article to help me remember how to do it. For the sake…
Reset Postgres PK Sequences in Rails
When doing multiple imports and deletions of development data I got into a state where I couldn't insert into ActiveRecord because the id was already taken. To fix that I used the following code to reset the pk sequence on all of my tables.