TIL - How to get Ubuntu codename from Linux distro based on Ubuntu

I’ve been playing a bit with Elementary OS… it is a nice, simple Linux distro based on Ubuntu. Which means that you you can follow the instructions for Ubuntu whenever you need to install any software in Elementary OS. That said, some installation instructions require specifying the Ubuntu codename, to be able to retrieve the right binary from internet, e.g. Installing Docker Engine. A command commonly used to retrieve the codename of your distro is lsb_release -cs.

Read More

TIL - Create a custom Quartz filter in ColorSync utility to reduce PDF file size on a Mac

I had a very large PDF document (18.9MB), which contained 24 large images, and I needed the file to be less than 5MB as I need to upload it on a website where the maximum file size is 5MB. Using Preview on Mac, it is possible to Export a file and select the format as PDF and Quartz filter: Reduced file size. The problem with this approach is that the image quality suffers greatly and the images in the PDF might end up not being that readable. From within Preview, it is not possible to modify the settings used by the Quartz filter. Here is where the ColorSync utility comes to the rescue :-).

Read More

Adding and trusting a Certificate Authority (CA) in Fedora

When running Citrix on Fedora, I was getting an error message similar to the following: “SSL Error 61: You have not chosen to trust ‘Certificate Authority’”. Basically, the CA (certificate authority) cert was missing in my operating system. To fix this, we need to do the following:

Read More

Updating an image used within k8s deployment

There are times when we update an image used in a deployment and we want our k8s deployment to use the latest image. We can achieve this in two ways, doing a rolling restart of the deployment or by specifying the deployment to run an image with a specific tag. Below the imperative commands that allow us to achieve this:

Read More