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 .*). ...
update/install tmux
a guide/script to update/install tmux version
a new post
a new post Write your content here…
docker_volumes
docker_volumes Write your content here…
Git Rebase to latest commit and delete previous
git commmands to keep only the latest commit
Austria Roadtrip 2025
some clicks from my recent trip
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
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.) ...
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
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.) ...