Self-Hosting a Minecraft Server for My Son: Privacy, Control, and Fun with Docker

Minecraft has transcended its status as merely a game; it’s a vibrant canvas for creativity, collaboration, and connection—especially for my son, Alexander. For him, Minecraft is more than just building elaborate castles or fending off creepers. It’s a realm where he can explore, learn, and share experiences with his friends. As a parent, however, I’m acutely aware of the risks associated with public or third-party servers. Concerns about online privacy, intrusive ads, and a lack of control over the gaming environment loom large. That’s precisely why I chose to self-host a Minecraft server for Alexander. This decision not only ensures a safe, private space for him to play, but also allows me to manage the server on our own terms. ...

September 2, 2022 · 5 min · 879 words

Exploring Ways to Increase Scroll Back Limit in iTerm2

Ever found yourself staring at a terminal output so lengthy that the scrollback buffer limit left you in the dark about where things went awry? It’s a common frustration, but fear not! Let’s delve into how you can enhance the scrollback limit in iTerm2, so you can keep your debugging skills sharp and your output history rich. Understanding the Scrollback Limit in iTerm2 Before we get our hands dirty, let’s unpack the concept of the ‘Scrollback Limit.’ Think of it as a safety net for your terminal output. By default, iTerm2 allows you to scroll back through 1,000 lines of output. While this is usually sufficient, there are moments—like when you’re running extensive scripts or analyzing logs—when you’d prefer a deeper dive into your terminal’s past. That’s where increasing the scrollback limit comes into play. ...

December 3, 2021 · 2 min · 323 words

Making Markdown Preview Work From Finder in OSX

The versatility of Markdown lies in its simplicity, making it one of the most effective tools for converting plain text to rich HTML. For those new to the world of Markdown, it’s a lightweight markup language that allows you to create structured documents with ease. However, there’s often a pesky hurdle to overcome: how can we preview Markdown files without the need to open a dedicated text editor or application? Fear not—using OSX’s Finder, you can preview these files as effortlessly as you would an image or PDF. In this guide, I’ll walk you through the steps to enable Markdown previews directly from Finder using a nifty tool called QLMarkdown. ...

October 15, 2021 · 2 min · 391 words

Migrating from LastPass to Self-Hosted Vaultwarden (Bitwarden)

If you’ve made the decision to transition from LastPass to a self-hosted password manager like Vaultwarden (a streamlined fork of Bitwarden), you’re likely in search of a reliable guide to facilitate the migration. Whether you’re running it locally through Docker Compose or looking to explore the self-hosted landscape, this post will walk you through the essential steps to ensure a smooth transition. Why Choose Vaultwarden? At its core, Bitwarden is an open-source password manager that not only allows easy imports from LastPass but also offers the flexibility of self-hosting. Vaultwarden, in particular, distills the original Bitwarden server code, making it lighter and easier to manage on personal servers. This means you can take control of your data while enjoying a user-friendly interface. ...

September 13, 2021 · 3 min · 484 words

Unraveling the Intricacies of Popular Open Source Licenses

In the dynamic landscape of programming and software development, open source licenses serve as both a roadmap and a compass. They remove barriers, foster collaboration, and catalyze growth, creating a legal framework that empowers developers to freely use, modify, and distribute software source code. However, for software producers, the task of selecting the right open source license can feel daunting. With a myriad of options at their disposal—each presenting its own set of advantages and challenges—it’s crucial to navigate this terrain with clarity. Consumers, too, must approach the terms of these licenses with care. ...

January 30, 2021 · 3 min · 524 words

Read a Filtered List of Files from a Directory and Ask the User to Choose One (Bash)

One of the standout features of Docksal is its extensibility through Bash scripting, making it a valuable tool for automating various tasks. A common scenario is the need to import databases when initializing projects. The snippet below serves this purpose by scanning a directory for database files and allowing the user to select which one to import. # Get a list of *.mysql | *.sql.gz | *.sql in /db/ and let the user choose which to import unset options i while IFS= read -r -d $'\0' f; do options[i++]="$f" done < <(find ${PROJECT_ROOT}/db/ -maxdepth 1 -type f \( -name "*.mysql" -o -name "*.sql.gz" -o -name "*.sql" \) -print0) echo "Press [Enter] to choose a DB to import" read -t5 -p "(times out in 5 seconds) " if [ $? -gt 0 ]; then echo "" echo "Timed out waiting for response. Skipping DB import..." else select opt in "${options[@]}" "Skip DB Import" do case $opt in *.mysql | *.sql.gz | *.sql) echo "Importing $opt ..." fin db import $opt break ;; "Skip DB Import") echo "Skipping DB Import..." break ;; *) echo "Invalid choice, please enter the number of your choice above." ;; esac done fi This script effectively searches a specified directory for files that match certain extensions and prompts the user to make a selection. The inclusion of a timeout is a thoughtful touch, especially for scripts designed to run unattended or as part of a larger automation workflow. ...

September 30, 2019 · 2 min · 369 words

How to Downgrade PostgreSQL from 11 to 9 to Fix "pg_dump: Aborting Because of Server Version Mismatch" Error

In the world of GitLab and PostgreSQL, compatibility is crucial. When using GitLab Omnibus, you’ll find it ships with PostgreSQL 9.6. However, if you’re leveraging an external PostgreSQL database container, it’s essential to adhere to a key requirement: GitLab only supports the exact version of PostgreSQL internally and externally. This subtlety often gets lost in the shuffle, especially for those new to the ecosystem. To put it plainly, if you’re running a Docker installation of GitLab, you must use PostgreSQL 9.6—no more, no less. ...

April 21, 2019 · 3 min · 569 words

How to Recursively Fix File Permissions in Mac OSX and Linux

When navigating the intricacies of a GIT repository, one common challenge often feels like a hidden trap: file permissions that shift unpredictably, triggering GIT to flag a barrage of changes. This scenario is especially prevalent when files transition from Windows systems, but it can crop up in various contexts. Fortunately, there’s a simple remedy: recursively updating file permissions. Why This Matters Think of file permissions as the gatekeepers of your digital realm. They dictate who can read, write, or execute a file. Misconfigured permissions can sow confusion and frustration, leading to unnecessary roadblocks in your workflow. Ensuring the correct permissions is essential for smooth code execution and effective collaboration within your team. ...

September 20, 2018 · 2 min · 316 words