How to install HP LaserJet 107a Drivers on Linux

Hello everyone! 👋 I’ve recently installed Fedora on my main PC and I wanted to write this post to serve me as a memo on how to install the HP LaserJet 107 printer driver. The driver should also be compatible with the following products and generally HP’s LaserJet 100 printer series. HP LaserJet 107a HP LaserJet 105a HP LaserJet 103a Installing the Drivers Installing the drivers requires Python3 available on your system if I remember correctly, it should be already available on Fedora and Ubuntu....

February 21, 2024 · 2 min · Denis Nutiu

ncdu: NCurses Disk Usage

Hello everyone! 👋 This is a short article about a handy tool called ncdu. The tool helps you delete files and directories from your filesystem. I use it daily to clear junk files from my workstation and the servers that I’m working on. 🧹 The way it works is quite simple: Navigate to the directory you want to clean and type ncdu. Select and delete files and directories. Be cautious ⚠️ with what you’re deleting....

December 11, 2023 · 1 min · Denis Nutiu

How to make RØDE audio interface work on Linux

Hi 👋, I have recently updated the firmware of my RODE audio interface from 1.12.x to 1.13, and the device was no longer working properly on Linux, it had trouble with the microphone. I found out that it was an audio sampling issue. dmesg -kH [feb21 16:20] usb 1-9.3: 1:1: cannot set freq 44100 to ep 0x82 [ +0,005008] usb 1-9.3: 1:1: cannot set freq 44100 to ep 0x82 [ +0,005019] usb 1-9....

February 21, 2022 · 1 min · Denis Nuțiu

How to install a specific Python version on Linux

Hello, 👋 In this article I will show you how to install Python versions on Linux using the following methods: compiling from source, dead snakes ppa and pyenv. To make things easier, if you want to follow along in an environment that you can break, you can create a local Kubernetes cluster using Minikube. Next, I’m going to use the following yaml file to create an Ubuntu pod: apiVersion: v1 kind: Pod metadata: name: ubuntu labels: app: ubuntu spec: containers: - image: ubuntu command: - "sleep" - "604800" imagePullPolicy: IfNotPresent name: ubuntu restartPolicy: Always Save the above yaml in a file ubuntu_pod....

February 5, 2022 · 2 min · Denis Nuțiu

fzf: A command-line fuzzy finder 🌸

Hi 👋, fzf is a command line tool that can be used to fuzzy search files, history, and command outputs. Check out the Github repository. This is a tool that I wish I’ve knew about earlier in my career, and for this reason I decided to blog about it. You can also set key bindings; some popular ones are: CTRL-T – Paste the selected files and directories onto the command-line...

September 22, 2021 · 1 min · Denis Nuțiu

Kubernetes service account for pod

Hi 🙋‍♂️, In this article I will talk about how to authenticate your applications to the Kubernetes API via the service accounts feature. Citing the Kubernetes docs, a service account for a pod: “provides an identity for processes that run in a Pod. When you (a human) access the cluster (for example, using kubectl), you are authenticated by the apiserver as a particular User Account (currently this is usually admin, unless your cluster administrator has customized your cluster)....

June 5, 2021 · 3 min · Denis Nuțiu

FastAPI Uvicorn logging in Production

Hello 🙋‍♂️, Running a ⏩FastAPI ⏩ application in production is very easy and fast, but along the way some Uvicorn logs are lost. In this article I will discuss how to write a custom UvicornWorker and to centralize your logging configuration into a single file. To keep things as simple as possible I’ve put all my code in a single Python file. main.py import uvicorn as uvicorn from fastapi import FastAPI, APIRouter router = APIRouter(prefix="") def create_app(): fast_app = FastAPI() fast_app....

May 18, 2021 · 3 min · Denis Nuțiu

Introduction to Pyenv for Linux Users

Hello, In this article I will introduce you to pyenv, a tool for managing python environments. Installing pyenv is pretty straight forward, you’ll need to clone the repo and add the binaries to the path. For a typical Debian based distro using the Zsh shell the instructions would be: git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc Then, in order for this to take effect, you need to reload the shell with: source ~/....

June 27, 2020 · 4 min · Denis Nuțiu