Welcome 👋

I write about Python, Linux, DevOps, automation, and all things code.

printf format align

printf format align Understanding %-*.*s in C 🧩 The general form 1 %[flags][width][.precision][length]specifier So %-*.*s combines several parts: Part Meaning % start of a format specifier - left-justify the output (pad on the right with spaces) * means “take the width value from an argument” .* means “take the precision value from an argument” s print a string (char *) 🧠 Putting it together: %-*.*s This means: Print a string (s), left-aligned (-), with a field width and precision both given as arguments (the * and .*). ...

December 1, 2025 · 2 min · mardest

update/install tmux

a guide/script to update/install tmux version

November 20, 2025 · 1 min · mardest

a new post

a new post Write your content here…

November 18, 2025 · 1 min · mardest

docker_volumes

docker_volumes Write your content here…

November 18, 2025 · 1 min · mardest

Git Rebase to latest commit and delete previous

git commmands to keep only the latest commit

November 17, 2025 · 2 min · mardest

Austria Roadtrip 2025

some clicks from my recent trip

November 17, 2025 · 1 min · mardest

new hugo website - taverniaris

1. create the Hugo site hugo new site foodblog cd foodblog git init # add a clean theme git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod

November 11, 2025 · 1 min · mardest

samba-setup-guide

🖧 Samba (SMB) Setup Guide — MiniPC ↔ Main PC This guide explains how to share folders between two computers using Samba (SMB) — ideal for Linux ↔ Windows interoperability. ⚙️ 1. Install Samba on the MiniPC (server) 1 2 sudo apt update sudo apt install -y samba 📁 2. Create a shared folder 1 2 3 sudo mkdir -p /srv/samba/share sudo chown -R youruser:youruser /srv/samba/share sudo chmod -R 775 /srv/samba/share (Replace youruser with your actual username — same UID 1000 on both PCs.) ...

November 11, 2025 · 2 min · mardest

Markdown to PDF

why do i need this one? #!/bin/bash pandoc notes.md -o tcp_sockets.pdf \ --metadata title="TCP sockets explained" \ --metadata author="MarDest" \ --metadata date="2025-10-30" rsync -a tcp_sockets.pdf mar@destpc:/mnt/nfs_share

November 1, 2025 · 1 min · mardest

nfs-setup-guide

🖧 NFS Setup Guide — MiniPC ↔ Main PC This guide describes how to share directories between two Linux systems (e.g., MiniPC as server and Main PC as client) using NFS. It also includes troubleshooting notes and alternative sharing methods. ⚙️ 1. Install NFS On the MiniPC (server) 1 2 sudo apt update sudo apt install -y nfs-kernel-server On the Main PC (client) 1 2 sudo apt update sudo apt install -y nfs-common 📁 2. Create and prepare shared directory on the MiniPC 1 2 3 sudo mkdir -p /srv/nfs/share sudo chown -R youruser:youruser /srv/nfs/share sudo chmod -R 775 /srv/nfs/share (Replace youruser with your actual username — both systems should have the same UID, usually 1000.) ...

November 1, 2025 · 3 min · mardest