etc

#JavaScript

I've used jq for a long while to handle JSON from the command line. I've found the syntax hard to remember. I handle complicated things with jq infrequently. Causing the little learned to not stick.

I use JavaScript regularly. Why not just use JavaScript?

Read more...

#Backups #FreeBSD #ZFS

I recently wrote a post called High Availability, RAID10, and 3-2-1 Backups with FreeBSD. There’s benefits to running the setup described within but it could be overkill for some uses. I don’t use it for everything. Sometimes all that’s needed is an incremental ZFS send/recv in a crontab. Admittedly, the previous post violates KISS (although, we didn’t invoke a package manager in the previous post — and we won’t do so here, either).

Read more...

#Backups #FreeBSD #Init #ZFS

What is this?

This is a guide on how to setup a primary and secondary FreeBSD server that enables high availability and 3-2-1 backups using a few key components: FreeBSD’s HAST (highly available storage), RAID10, and ZFS. No package manager or port required.

Read more...

#CI #CD #FreeBSD #Git #Go #Init

I host 33 web services on my personal servers. Ten of which are Go web services which I have created. They’re “open source.” In quotes as some services and their sources are obscured (I don’t care to document their uses). Managing more than a couple web services effectively needs some level of automation. Specifically around building and deploying the web services. Of which I handle with Git hooks and rc.d on FreeBSD.

On this blog you can find posts on minimal rc.d scripts and minimal CI/CD scripts but here I will show a full example I use across a number of open source Go projects that I think work well for general usage (and is used for this very blog).

Read more...

Read more...

#Caddy #ReverseProxy #WordPress

WordPress is annoying to reverse proxy. I won’t get into the details of why but instead just provide a quick fix. Open up your wp-config.php and place this block of code directly after the opening PHP tag:

Read more...

#CI #CD #Git

I began trying out various CI/CD solutions last week. Spinning up new Jails, configuring reverse proxies and certs, to finally walk away thinking: “wow, all this just to write a little sh after a git push to the main branch?”

I deleted the Jails.

Read more...

Read more...