Blog

Thoughts, tech notes, in-depth articles and walkthroughs.

April 08, 2017 1 mins read
Engineering

Fix Git Line Feeds on Windows Forever

In my day-to-day workflow, I frequently use a cygwin shell on Windows, namely Babun. As you might imagine, shell scripts with Windows line endings \r\n are simply no good at all:

$ ./script.sh
bash: ./script.sh: /bin/sh^M: bad interpreter: No such file or directory

$ ./script.sh
./script.sh: line 2: $'\r': command not found

This blog post is a note to my future self to not read through the thousands of answers available on StackOverflow again. Let’s get rid of those \r\n things.

Read more
March 11, 2017 5 mins read
Engineering

Building a Living Style Guide with Brunch

Living style guides are a wonderful way to document and develop living style guides. There are a number of frameworks and frontend build systems that can be used to setup a project for a living style guide. In the meantime I have built quite a number of living style guides and have since found a combination of Brunch and kss-node to be a good fit. This blog post shows how a project for developing a living style guide can be setup.

Read more
February 08, 2017 7 mins read
Engineering Architecture

How to Develop a Living Style Guide

Living style guides are a very powerful tool to write clean SCSS code. They simplify the design and implementation of reusable components. On top, you have a very consistent and easy to test style for the web application(s) using the style guide. In fact, a style guide is so easy to develop that I even use one for this simple website. But how do you actually develop a component for a living style guide? This blog post will walk you through the planning and actual implementation, but will not go into the technical details of how to setup the styleguide infrastructure.

Read more
January 19, 2017 6 mins read
Engineering

Migrating a GitLab Instance to Another Server

GitLab is an open-source web application for managing Git repositories that I use to store a lot of my personal coding and university projects. I have GitLab running on a root server and decided to migrate the running instance to a new root server. This blog post explains the process I used to perform the migration.

Preparing the Migration

GitLab provides the ability to create a backup of all the data and configurations and to restore that backup in a fresh installation. According to the docs it is required that the server from which the backup is made and the server to which the backup is restored must be running the same version of GitLab. Hence, to start the migration the first step was to update the existing GitLab instance to the latest version:

Read more