Git - Pushing Code to a Remote Computer

I needed to set up git for pushing into a non bare repo with a checked-out branch. Here is how I did it:
Read more →

Reading Command Line Arguments in NodeJS

Accessing command line arguments in NodeJS is easy. For simple applications, access the process.argv array directly. For more sophisticated ones, use one of argument parsers.
Read more →

Hello Docker

How to dockerize a simple NodeJS app
Read more →

Hugo, Asciidoctor & PlantUML

PlantUML is a great markup language for creating (not only) UML diagrams. Let’s try and make this tool work with Hugo + Asciidoc. Asciidoctor has an asciidoctor-diagram package in its toolset. This package should add support not only for PlantUML but also for GraphViz and other graphing markups. Cool. Asciidoctor-diagram was installed when setting up the platform, covered in the previous article If you try to add a simple PlantUML diagram now, you will probably get an empty picture.
Read more →

Silent pushd and popd in Bash Scripts

I have several shell scripts that use pushd and popd extensively. These commands output the paths to stdout which may overwhelm the console output with lots of unwanted text. Unfortunately, neither pushd nor popd have any silent option according to their man pages. A simple solution is to redirect the stdout to /dev/null. pushd $PWD > /dev/null Is it favourable to explicitly redirect to /dev/null everytime I call pushd/popd in the script?
Read more →

Asciidoctor Hugo

Hugo has great support for Markdown. It works out-of-the-box altogether. However, I like Asciidoc more so I tried to set up the platform for writing pages with lots of source code listings. It became a task for masochists. If you are okay with Markdown, you should probably stay in that realm and enjoy simplicity. I tried several approaches. None of them seemed to work for me. External CSS according to Rgielen.
Read more →