Posts

89 posts

Running a Self-Hosted Bookmarking Service with Shaarli

In a world awash with digital content, finding a reliable way to manage your bookmarks without sacrificing privacy can feel like searching for a needle in a haystack. I wanted a solution that offered: A seamless user experience Robust privacy through self-hosting Simple setup via docker and docker-compose Minimal resource consumption While there’s no shortage of alternatives, like Wallabag, I found it to be slower and more resource-heavy than my chosen solution: Shaarli. Other options, such as Unmark, Shaark, and LinkAce, often attempt to offer too much, leading to unnecessary complexity and resource demands. ...

August 29, 2020 · 3 min · 535 words

Making the Most of Asus Merlin

I wanted to upgrade my home router. I think an Asus router with Merlin firmware delivers fantastic value and flexibility. Read on to see why.

August 11, 2020 · 3 min · 586 words

Streamlining Hugo Post Creation with Bash

If you find it annoying to have to manually create a specific directory structure every time you want to create a post in Hugo using the Academic theme, then you need this simple bash script to do the steps for you!

August 11, 2020 · 3 min · 557 words

Improving Terminal in OSX

Out of the box, using the Terminal in macOS leaves much to be desired. The built-in application can feel inflexible and quite plain, while the default shell, Bash, lacks several handy tools that become indispensable once you’ve experienced them. Let’s explore how to transform your terminal experience into something that’s not just functional but enjoyable. Homebrew: The Missing Package Manager Homebrew is the essential package manager for macOS. It fills a significant gap for developers, allowing you to easily install and manage software packages. ...

August 7, 2020 · 4 min · 654 words

How to Install Docker on Amazon Linux 2

Installing Docker on Amazon Linux 2 is a straightforward process that opens up a world of possibilities for containerization. Let’s dive into the steps, ensuring you have a smooth experience from start to finish. Step 1: Update Your System First things first: you want to make sure your system is up to date. Run the following command to perform a quick update: sudo yum update -y Step 2: Install Docker Once your system is prepped, installing Docker is as simple as executing: ...

January 30, 2020 · 2 min · 391 words

My Approach to Leadership: A Study of Style

All the points below converge on a simple yet profound theme: a leader’s role is fundamentally about encouraging, supporting, and empowering others. It’s not about you; it’s about cultivating an environment where your team thrives. A leader is best when people barely know he exists; when his work is done, his aim fulfilled, they will say: we did it ourselves. — Lao Tzu Get Out of Your Team’s Way Trust is non-negotiable. If you don’t believe in your team’s ability to excel, then perhaps it’s time for a reevaluation of your selection process. But let’s face it—we don’t always inhabit a utopia of superstars. Even in teams where potential is abundant, your job is to create the space for team members to flourish. ...

January 20, 2020 · 3 min · 450 words

How to Forward SSH Port Using UFW/Iptables

How to forward the default SSH port from the public internet to an internal containerized service.

January 4, 2020 · 3 min · 454 words

Hugo for Beginners

Hugo is a powerful static site generator that stands out for its speed and simplicity. If you’re looking to create a website quickly and efficiently, you’ve landed in the right place. Quickstart Let’s get you up and running: Clone the Repository Start by cloning the repository: git clone <this repository> Initialize Submodules Update your local copy of the academic theme: git submodule init git submodule update --recursive --remote Install Hugo If you’re using Homebrew, a simple installation command will suffice: brew install hugo ...

December 20, 2019 · 3 min · 459 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 Install Python with Brew on macOS

Installing Python on macOS can be a bit of a journey, especially since the operating system comes pre-installed with an older version. Thankfully, Homebrew, a popular package manager for macOS, makes it straightforward to get the latest version of Python. Let’s walk through the steps together. Why Upgrade Your Python? Upgrading to a newer version of Python is essential for several reasons. Not only does it provide you with access to the latest features and security updates, but it also ensures compatibility with modern libraries and frameworks. In a world where technology evolves rapidly, staying current is not just a nice-to-have—it’s a necessity. ...

August 30, 2019 · 3 min · 446 words