RSSAmplifier

Blog

Posts on FlakM blog

Recent content in Posts on FlakM blog

flakm.comRSS feed ↗18 posts

Latest posts

Your Editor Can’t Do This (Unless It’s Good like Neovim)

Tell me your editor can do that! Link to heading Copy a reference to exactly this function with correct types, at exactly this commit , paste it anywhere - markdown, slack claude code and jump back to it instantly, even days later. Why do I need this? Link to heading I write down every new task in a brag document - idea introduced to me by Julia Evans.

Keeping all the balls on fire: tmux-fzf to the rescue 🔥

Speed isn’t the problem - stopping is Link to heading I’ve got three lovely kids, a job I enjoy, and a life that’s basically a juggling act where all the balls might also be on fire. Weirdly enough, going fast isn’t the issue. Slowing down is. Focusing on one thing, ignoring distractions, avoiding the tax of constant context switching… that’s the real challenge. So I try to keep workflows…

Aligning with rust's Guiding Principle: my path to finding my 'Why'

Rust’s guiding principle Link to heading I’ve been going through a fantastic book Start with Why by Simon Sinek, and I couldn’t shake the feeling that it reminded me of something. Then I recalled the talk Inventing on principle by Bret Victor. The main point of the talk is that, as a technologist, you can find your guiding principle.

Automating the pain away

Automate the unispiring tasks Link to heading Some tasks do not spark joy. They are repetitive, tedious, and time-consuming. But they need to be done 💀 A prime example of such a task is changing my markdown notes describing a project to jira entries. I like the process of planning the tasks, discussing them with the team, and iterating on the plan. But with the most profound hatred, I don’t…

Writing a CV in AsciiDoc and ditching Google Docs

Writing a CV, a wrong way Link to heading I’ve historically used Google Docs for my CV. It’s a great tool, but I’ve had some issues with it for my use case: Styling was never consistent, and changing styles was difficult Since I’m not a native English speaker and I’m a dyslexic, I had to keep going between sites like Grammarly and docs - which messed with the…

Phantom Menace: memory leak that wasn't there

I’m always scared of the bug that will finally break me - lose my sanity once and for all. The main character, the leaky program, is a legacy rust application - a safe http interface for imagemagick. We are migrating it to Kubernetes. It handles image processing for our other services - enabling clients to upload images and get them processed and cached on the backend. The migration went…

Securing the blog host

Setting up tailscale Link to heading One sad thing is that the host currently exposes SSH over the Internet. There is also a risk of accidentally exposing another service. To mitigate this risk, we can use modern VPNs and add additional firewalls on the Hetzner side. To avoid the hassle of managing my keys, I’ll be using a generous tailscale free tier. To enable tailscale, we’ll have to add one…

Observability: CPU Usage

I’m going through the fantastic book “Systems Performance” by Brendan Gregg. And I find it very useful to test the tools themselves and see how they work. So, I decided to write articles about the tools and techniques Brendan Gregg describes in his book. I will prepare a sample rust program to generate specific load on the system, and we will use the tools to analyze the…

Finding stuff in the terminal

Looking for stuff in code is an essential skill in daily tasks. It lets me keep a laser focus on the problem at hand. Examples of questions I find myself asking over and over again: Does this repository contain this variable? What was the context of changing this variable name? Who is the best person to ask questions about this project? What are all the versions of libc on my system? Here are my…

Screaming at the clouds ☁️

About the infrastructure Link to heading I&rsquo;ll provision the environment using Hetzner and Cloudflare. The process could be better but should be simple to maintain and follow. Contents: About the infrastructure Provisioning all the things Environment setup 🚢 to ☁️ Host declarative configuration Provisioning infrastructure Job well done Taking over the ubuntu host <3 NixOs deployment Summary…

Blazing fast module 🚀

Let&rsquo;s expose the flake! Link to heading In a previous post, we built a simplistic but blazing-fast HTTP server that returns a hello world HTML page. It produces an elf binary that we can run. It&rsquo;s where nixos starts. We&rsquo;ll have to expose this piece of code as a nixos module. A nixos module is just a function that takes inputs and returns additional output evaluated when the whole…

Measure twice cut once with NixOs

Building a personal tech blog Link to heading Building a personal blog can be daunting, especially when choosing the right solution that will get out of the way. Therefore, I&rsquo;d like to have a static site generator split the site and add ActivityPub integration to interact with it over time. I&rsquo;ve also decided on self-hosting and using open protocols, especially after last year showed…

The impossible case of pitching rust in a web dev shop

Short research about making decision to use rust in medium web development shop.

Simple rust interview questions

List of interview questions along with minimal answers. A good question should: Check ability to think outside the box Check deep understanding of key concepts Invite discussion Check ability to communicate tricky parts of the technology Check formal knowledge of the domain

Profiling heap allocation in rust

How to understand and then profile heap memory usage in rust application. With the company with old friends: pmap , strace and heaptrack

Rustberry PI - DHT11

Uczę się obsługiwać czujnik wilgoci i temperatury DHT11 z użyciem rust i prezentuję wyników na ekranie lcd używając biblioteki zbudowanej w poprzednim wpisie

Rustberry PI - LCD

Uczę się podłączać i z sukcesem wyświetlić napis na wyświetlaczu LCD 2x16 znaków opartym na kontrolerze HD44780 z rustem.

Rustberry PI - LED

Nie krótko i nie na temat o tym jak uczę się czym jest GPIO, jak się nim steruje na oraz w efekcie - jak zapalać diodę LED przy wykorzystaniu GPIO i rusta 🦀