RSSAmplifier

Blog

swehack.se on Swehack

Recent content in swehack.se on Swehack

swehack.seRSS feed ↗59 posts

Latest posts

Jammy Eggs

Jammy Eggs är marinerade löskokta ägg, som är väldigt gott att dela i två delar och servera med nudlar. Löskokta ägg Jag brukar koka upp saltat vatten med äggen i, och så fort det kokar sätter jag timern på 4 minuter. Efter 4 minuter ta av kastrullen, häll av vattnet, och häll över kallt kranvatten i minst 1 minut, låt sedan vattnet ligga i kastrullen i minst 1 minut innan du skalar äggen…

Weaning myself from git pull

I’ve used git for well over a decade, sometimes in a team, but mostly on my own. Once again my career has me working on git in a team, so git pull becomes an issue. Thought I’d write this down to help myself transition away from that command. This post is a simplification of git, mostly meant to serve as an aide for myself. git pull is actually two commands When you run git pull it…

Upgrading Fedora 42 to 43

Upgrading Fedora Sericea (Atomic Sway) from 42 to 43 I recently had the displeasure of upgrading my Fedora (Atomic Sway) 42 to 43 , and my takeaway from this experience is that Atomic Fedora is not ready for the mainstream. Why do I say that? Well, I used to be a huge advocate for Atomic Linux, ever since I started using it in 2022, my initial view was that the safety of atomic updates would be…

Why So Quiet?

Why so quiet? Short answer, I’ve been focusing a lot on my new job, with IntraPhone Solutions AB. $DAYJOB I’m realizing now that I had stagnated at my old job and was in desperate need for something new. I had been with Telia Cygate for 13 years! I met the love of my life there, and lost her to cancer while still working there. At Telia/Cygate I leveled up a lot, learned so many new…

Vim Tips and Tricks

Vim is funny, I’ve been using it for 25 years but it often feels like I’m only using 10% of its potential. Youtube Video by Henry Misc I found this video by Henry Misc , and it inspired me to write some of his tips down for myself, to remember them better. Quick exit I already knew about ZZ to save and exit, but I need to practice more ZQ to exit without saving, instead of :q! .…

Projects

Gitlab I try not to upload any new projects to Github, but the profile is still there with some old content in it. Anything I make is uploaded to Gitlab.com, simply to promote the underdog against the big multinational corporation. my gitlab profile (preferred) my github profile (abandoned) Projects Pluggable Python Prometheus exporter Python RPG “Onward” Ansible Collection for…

New Blog Design

This new theme is a world apart from the old theme, but I couldn’t resist redesigning my blog when I found the Academic project page template by Eliahu Horwitz. I know it was made for Academic papers but I just adored the clean design, clear font, everything about it. So I adapted it for Hugo. At the moment it’s bundled into the same repo as my website , the theme is partly hard coded…

Årets Semlor 2025

Har provat följande semlor under 2025. Betygskala upp till fem stjärnor. ⭐⭐⭐⭐⭐ St. Jakobs Stenugnsbageri, Limhamn St. Jakobs Stenugnsbageri, Limhamn Betyg: ⭐⭐⭐ Helt ok semla, rivna mandlar runt kanten skadar inte. Katarinas stenugnsbageri, Triangeln Betyg: ⭐ Gammal, besvikelse. Kakboden, Limhamn Kakboden, Limhamn Betyg: ⭐⭐⭐⭐ Perfekt semla, mjuk och färsk, mycket mandelmassa som bröt sig igenom…

WPA3 in NetworkManager

Just because my wifi router supported WPA3 I assumed my laptop was using it but apparently it requires a simple setting in NetworkManager. nmcli con mod my-wifi-connection wifi-sec.key-mgmt sae nmcli con down my-wifi-connection nmcli con up my-wifi-connection Use nmcli dev wifi list to see if your Wifi supports WPA3.

Salsiccia Tagliatelle

Detta är en carbonara jag brukar göra med Salsiccia istället för Pancetta. Ingredienser för ca. 4 portioner 500g salsicciafärs ca. 200g Körsbärstomater 250g färsk eller torr Tagliatelle eller Fettuccine pasta 3 äggulor ca. 2 dl riven Parmesan eller västerbottenost Rosmarin Peppar Sambal Oelek Recept Koka pastan enligt ansivningar, spara ca. 1-2 dl pastavatten vid sidan om när du häller av det.…

Tips for Winter Camping

Saw this informative video of 7 common mistakes people do when winter camping, so I felt like writing them down on my blog to save them and remember them better. Here is a quick summary. Bring a good sleeping pad that is rated for your expected temperature. Ensure your sleeping bag is rated for slightly lower than the temperature you expect, measured against the “Comfort” rating. Do…

Mastodon.se

Image from Per Axbom's blog https://axbom.com/fediverse/ I’ll never forget first hearing about StatusNet and GNU Social back in 2017, I was mesmerized. The thought of a social media owned and operated by the people was revolutionary to me. Immediately I started digging into it and registered the domain gnusocial.se, where I deployed my first fediverse node. Not long after that I registered…

Editing my Blog in Vim

I edit this blog in my favorite text editor, vim . Have been using vim since I was a teenager so it’s habitual. After 25 years with Vim I still learn new habits. Today since I was editing a few blog posts at once I realized that long lines in markdown, paragraphs in other words, are the most tiring thing to navigate in vim. So far I’ve been using 55h or 55l to jump 55 characters to…

Hyprland Fedora Atomic Image

Image based Linux is an exciting new concept that I have explained further in a previous post . The latest innovation in this field is bootc , that should replace the integral ostree component in Atomic Linux. In this post I will explain how I used bootc to boot a new Fedora image on my laptop. Building Hyprland For my experiment I chose to build the (in)famous window manager Hyprland from source…

Fedora Atomic Linux

Not sure what we should call this relatively new technology that is sweeping the internet right now, but it looks like “image based Linux” is a popular term at Red Hat , Red Hat being one of the main contributors to this tech. I am partial to the name Atomic Linux though, sounds like a powerful new distro. 😉 Endless OS is a Debian variant of image based Linux. I wrote about CoreOS…

InactiveRequest packages in ostree

I just noticed this message when I was installing a new package with rpm-ostree. Inactive requests: kanshi (already provided by kanshi-1.7.0-2.fc41.x86_64) swayidle (already provided by swayidle-1.8.0-5.fc41.x86_64) adobe-source-code-pro-fonts (already provided by adobe-source-code-pro-fonts-2.042.1.062.1.026-5.fc41.noarch) grimshot (already provided by grimshot-1.9~rc2-2.fc41.noarch) This is…

Ansible Does not Scale

Just got the news that Open-source Puppet has been crippled by the parent company Perforce. This is a very hostile move that they’re doing to squeeze more money out of their open source project. And it made me think of me switching from Puppet to Ansible back in 2013, I never regretted this decision. But a lot of people will tell me: Ansible doesn’t scale . That’s true, but you…

Python logging

Basic logging to stdout import sys import logging logging . basicConfig(stream = sys . stdout, level = logging . INFO) logging . error( "He's dead, Jim" ) As a rule I prefer using the Python logging library for any console output, just because it seems the most consistent. But I rarely can remember how to setup very basic logging to stdout, now I can refer to this post instead of going through old…

Dotnet

Dotnet on Linux wasn’t bad at all, very smooth threshold of entry and it reminds me a lot of Python in its ease of adoption. Thumbs up Microsoft! Installing dotnet on Fedora sudo dnf install dotnet -y Start a project A project is necessary to add dependencies and libraries with dotnet add . mkdir dotnet-examples; cd dotnet-examples dotnet new console Test build dotnet build By default this…

Convert Markdown to PDF with Pandoc

I host my CV on my personal website here and of course I always wanted to generate a PDF version of this page, but I could never get the image right so until now I simply deleted the image from the markdown before processing the markdown into PDF. After some Google-Fu I finally solved this issue. Pandoc This tool is powerful but complicated, because it’s a wrapper for many other tools like…

Scones

After making this a few times it’s a super quick way to get a nice breakfast treat. Baking sheet with freshly made scones Ingredients 250 gram flour 40 gram butter 0.5 dl sugar 3 teaspoons baking powder 1 teaspoon vanilla sugar 2 egg (one for coating the scones) 1 dl milk Recipe Mix flour and butter with your fingers until it’s like dry crumbs. Mix in the other dry ingredients, 1 egg,…

Meshtastic

This is how I got into Meshtastic as a European mostly residing in Sweden or Croatia during Q1 of 2024, using a Linux laptop. Purchase device I ordered the WiFi LoRa 32 V3 from heltec.org and they arrived within a few weeks. I would suggest you order at least 3 of them to test the mesh capability. Flashed firmware I used the CLI method in the official docs . Install app Install the Meshtastic app…

Steamrot

This is a weird one but since I don’t have the time or insight necessary to troubleshoot Steam I will simply write how I perceive it. The longer you use Steam, the more it “rots” on disk and eventually breaks. Steam on Linux First of all, disclaimer, Steam and Proton are amazing! I came from the era of Linux gaming where we couldn’t even dream of playing what we do today.…

Cheatsheets

Use cheat , define your own cheatsheets and manage them with git instead of writing a blog post for each one. So here are mine , on Gitlab.

About living in Croatia

My parents came from Croatia in the 60s and had 4 children in Sweden, so I’m born and raised as a Swede. Yet I have been to Croatia since I was a newborn baby, my mom once lost me on a train in Croatia in 85, only to find a group of Swedish women she met before had taken care of me the whole time. So I have probably been most summers in Croatia as a child, but I made very few consistent…

Travel tips

Decided to gather some tips on travel here, partly for my own sake, but also because I’m sending a young relative on a trip and was hoping this could help them out. Disclaimer; some of this might be obvious, some might seem strange, some might be false or not applicable in certain regions, the author takes no responsibility for how these tips are perceived or used. Smartphone An essential…

Pita sa sirom

I’m not claiming this for Croatia, but I get this with my burek at my local bakery every morning. Cake batter 125 grams room temperature butter 100 grams sugar Mix with an electric mixer in a bowl until fluffy, and mix in; 4 egg yolks 1 tablespoon of vanilla extract, or vanilla sugar half tablespoon of lemon juice 250 ml milk, pour into the mix gradually Mix 250 grams of flour with about a…

E-mail with Aerc, isync, pass and GnuPG

I already use pass and GnuPG to handle my passwords, but now I wanted to setup the Aerc e-mail client on my laptop. Here’s how I did it on Atomic Fedora Sway 40. Thinking in containers With Atomic Fedora I try to run everything I can in a container, to keep modifications to the host OS down to a minimum. Here’s what I install in a toolbox container. sudo dnf install aerc isync…

Nightowl

I’ve always been a nightowl, for as long as I can remember. Even as a kid 8-10 years old I remember just riding my bike around at night, and staying up very late on my computer. The night is calming to me because my senses get overstimulated easily, and that’s why I get the most done at night.

Now

A summary of what is going on in my life, “now”. Vacation at BornHack 2026 I opted not to camp at bornhack this year but I regretted it as soon as I saw the camp and all the beautiful people. ♥️ But I’ve been enjoying Odense a lot, and I’m going to Horsens tomorrow to explore an island. Selfhosting Trying to host even more services, degoogling my calendar and my music…

AWS footgun

I’ve been using AWS many years now for many different things, and it goes without saying that it requires its own set of skills to use correctly. S3 buckets At first there was the danger of public S3 buckets, AWS made a lot of changes to prevent those from being created. Still businesses are leaking patient data and all sorts of goodies on S3 buckets, but at least they can’t say they…

Show a PostgreSQL setting in psql shell

When you for example set shared_buffers=1GB in your postgresql.conf file and then want to verify this setting in a query, or the psql shell, it gets a bit confusing. postgres=# select name,setting,unit from pg_settings where name='shared_buffers'; name | setting | unit ----------------+---------+------ shared_buffers | 131072 | 8kB (1 row) There are two ways to view the correct value. postgres=#…

The XZ backdoor

I don’t normally presume to be competent enough to do a write up of something as technically advanced as the xz backdoor , but this has been such an thrilling moment in IT history that I just had to write my thoughts down to ruminate on them. At the end of the day I’m relieved that the impact was not greater, so now I’m mostly interested in who might be behind it. Instinctively…

Dog training

Disclaimer: This is just one persons first experience training a JRT. Your mileage may vary. Results I thought I’d start with the positive results my training has lead to. I love my dog and I want her to feel as free as possible in the relatively short time she’s with me. Therefore I want to keep her off-leash as much as possible. This requires her to listen to me, it might save her…

My dogs

I thought I’d start writing down what I’ve learned since getting my first full-time dog in 2017, so this is the start of a series of posts that will all process one subject each, and try not to be too long-winded. My dogs I am the proud owner of a female Jack Russell Terrier named Smulan, and in 2022 Smulan gave birth to 4 little pups of which another female JRT was given to my mother.…

Handling confrontations on dog walks

Avoiding confrontation This is a mistake I see dog owners make very often, so it’s the first thing I want to address in this series. When you encounter another dog and its owner on a walk and you stop before them that signals to your dog that you’re taking part in this confrontation. Whether it be positive or negative, you’ve now decided to engage this new dog and its owner. If…

Change DNS servers in systemd

This might seem confusing to some but it’s actually quite easy, ignore resolvectl and use nmcli to set a DNS for each connection. nmcli con mod "my connection" ipv4.ignore-auto-dns yes nmcli con mod "my connection" ipv4.dns 8.8.4.4,8.8.8.8 nmcli con down "my connection" nmcli con up "my connection" Verify with resolvectl. Change back to DHCP by toggling nmcli con mod "my connection"…

How I perform backups

The primary goal with my backups is to quickly restore my laptop to a working state so I can continue performing my duties. This also applies to fresh installs of the OS of course. Files and secrets I run a backup.bash script that mounts a very small 2TB SSD over USB-C, unlock it using LUKS and a long passphrase that I have in my head and then does several backup operations to it. git push of my…

What is Fedora CoreOS?

Fedora CoreOS is Fedora’s immutable server distro. Sort of like what Silverblue is for workstations, but for servers and virtual machines that normally run headless containerized services. It’s supposed to be a minimal container host where you are meant to make as few changes as possible to the host FS, config or packages. Everything should run in a container. You can technically use…

Install and start a service on Fedora Core OS using Ignition

I use Terraform to setup Fedora CoreOS VMs in vSphere, and for Terraform to finish VMware tools has to be running so the VM’s IP-address can be discovered and returned via the vSphere API to Terraform. To accomplish this on Fedora CoreOS using Ignition I use this service unit in systemd. [Unit] Description=Layer open-vm-tools with rpm-ostree Wants=network-online.target…

Currently using

A brief description of my current working setup. Software Atomic Fedora (Sway edition, formerly known as Sericea) SwayWM tmux vim Python 3 Ansible Gitlab CI/CD Popular CLI utilities toolbox bash direnv fzf pass gnupg vim plugins Taboo Ansible-vim indentpython vim-polyglot Screenshot Hardware Framework 12 Framework 13 Google Pixel 9 Pro Sony WH-1000XM4 BT over-ear headphones Sony WF-1000XM3 BT…

Curriculum Vitae

Personal intro Senior systems architect specializing in Linux and open-source software. Year of birth: 1985 First employment in IT: 2004 Spoken languages: Swedish, English, Croatian and some Danish. Strengths Bash Python RHEL Fedora SElinux Clusters High Availability MariaDB Maxscale PostgreSQL DevOps GitOps CI/CD IaC Ansible Terraform Kubernetes Podman Systemd Quadlets My seniority in the Linux…

About this site

As previously stated; this is a personal blog to document my journey through life, but mostly computers. Disclaimer This blog is highly personal to me, you might even say it’s cathartic to write. I might be very honest, or straightforward in my opinions on this blog, so don’t be offended, you can just browse away somewhere else and enjoy your internet experience without me. :) About me…

Is kubernetes the right tool for you?

Why write this? For a while I got the feeling that people were using Kubernetes to solve all their problems, I also got swept up in this trend. After 3 years of using Kubernetes professionally and privately, I can finally summarize my thoughts on whether or not it’s the right tool for the job. What is your context? Cloud, on-prem, VMware, oVirt, bare metal? This matters, because Kubernetes…

Gitlab Runner With Rootless Podman

How to get Gitlab Runner working in a rootless Podman , for a headless service account. Set SElinux to permissive Unfortunately I’ve had to do this to allow the container to connect to the podman socket file. Of course it can be resolved with a custom policy but that’s outside the scope of this short post. I run my runners on their own VMs to mitigate this issue. On any other…

Gitlab runner Quadlet on Fedora CoreOS

In production I’m deploying Gitlab runners as Quadlets on CoreOS using Terraform, but here is just a short description of how to get it running. You cannot use .container or .volume service unit with Ignition , so you have to define them as ignition_file . At boot the services will be generated. Here is an example of the container unit which we can call gitlab-runner.container and place…

Delete all your lambda functions

For some reason I wanted to delete every Lambda function I had, in every region available. Here&rsquo;s how I actually typed it out. while read -ra regionName; do while read -ra functionName; do aws lambda delete-function --region " $regionName " --function-name " $functionName " ; done < < ( aws lambda list-functions --function-version ALL --region " $regionName " | jq -r…

Post 3

Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt…

Post 2

Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in…

Post 1

Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem. Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat…