avatar

Andres Jaimes

Debian Trixie + Sway computer setup

I’ve been circling this decision for a while, trying to figure out the best setup for my day-to-day tasks. I’ve worked with multiple operating systems, including Windows 3.1, 95, 98, NT, 2000, XP, 8, 10, 11, Mac OS9 and OSX from the cats to the …

Creating a simple static library

This article describes how to create a simple static library using C++. A static library is a collection of object files that are linked with and copied into a target application at compile time. The resulting executable contains all the object code …

Creating a simple dynamic library

This article describes how to create a simple shared library using C++. A shared library is a collection of object files that are linked with and loaded into a target application at runtime. The resulting executable contains only the object code that …

Common git commands

This page’s intention is to help me keep some git commands handy, since some times I forget how to do some tasks in the github workflow.

Our first step is to clone a repository using the command git clone …

Generate a random string using the console

Generate a random string using the command line:

1cat /dev/urandom | tr -cd [:graph:] | head -c 32

On OSX, the previous command might return a tr: Illegal byte sequence error, so try:

1export LC_ALL=C; cat /dev/urandom | tr -cd [:graph:] | head -c 32 …

Undoing the Last Git Commit

A command so important, it deserves its own page:

1git reset --soft HEAD~1

The previous command undoes the last commit to git. I think this is one of those commands that I have typed many times during the last year. It’s very important to know …

Installing Rancher on Ubuntu/Docker

On this article we are going to install a rancher server on Ubuntu. Let’s start by getting the rancher image from docker hub:

1sudo docker run -d --restart=always -p 8080:8080 --name=rancher-server rancher/server

Go to http://ip-address:8080 …