From 4c82a3eb240483a3db51e80015fe94af52b1adc2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 3 Mar 2024 00:09:29 +0200 Subject: Update content for gemtext --- gemfeed/atom.xml | 175 +- gemfeed/atom.xml.tmp | 6544 -------------------------------------------------- index.gmi | 2 +- uptime-stats.gmi | 2 +- 4 files changed, 70 insertions(+), 6653 deletions(-) delete mode 100644 gemfeed/atom.xml.tmp diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index f0406042..7a39037b 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,11 +1,78 @@ - 2024-02-04T18:41:15+02:00 + 2024-03-03T00:09:16+02:00 foo.zone feed To be in the .zone! gemini://foo.zone/ + + A fine Fyne Android app for quickly logging ideas programmed in Go + + gemini://foo.zone/gemfeed/2024-03-03-a-fine-fyne-android-app-for-quickly-logging-ideas-programmed-in-golang.gmi + 2024-03-03T00:07:21+02:00 + + Paul Buetow aka snonux + paul@dev.buetow.org + + I am an ideas person. I find myself frequently somewhere on the streets with an idea in my head but no journal paper noting it down. + +
+

A fine Fyne Android app for quickly logging ideas programmed in Go


+
+Published at 2024-03-03T00:07:21+02:00
+
+I am an ideas person. I find myself frequently somewhere on the streets with an idea in my head but no journal paper noting it down.
+
+I have tried many note apps for my Android (I use GrapheneOS) phone. Most of them either don't do what I want, are proprietary software, or are too bloated. I was never into mobile app development, as I'm not too fond of the complexity of the developer toolchains. I don't want to use Android Studio (as a NeoVim user), and I don't want to use Java or Kotlin. I want to use a language I know (and like) for mobile app development. Go would be one of those languages.
+
+Quick logger Logo
+
+Enter Quick logger – a compact GUI Android (well, cross-platform due to Fyne) app I've crafted using Go and the nifty Fyne framework. With Fyne, the app can be compiled easily into an Android APK. As of this writing, this app's whole Go source code is only 75 lines short!! This little tool is designed for spontaneous moments, allowing me to quickly log my thoughts as plain text files on my Android phone. There are no fancy file formats. Just plain text!
+
+https://codeberg.org/snonux/quicklogger
+https://fyne.io
+https://go.dev
+
+There's no need to navigate complex menus or deal with sync issues. I jot down my Idea, and Quick logger saves it to a plain text file in a designated local folder on my phone. There is one text file per note (timestamp in the file name). Once logged, the file can't be edited anymore (it keeps it simple). If I want to correct or change a note, I simply write a new one. My notes are always small (usually one short sentence each), so there isn't the need for an edit functionality. I can edit them later on my actual computer if I want to.
+
+With Syncthing, the note files are then synchronised to my home computer to my ~/Notes directory. From there, a Raku script adds them to my Taskwarrior DB so that I can process them later (e.g. take action on that one Idea I had). That then will delete the original note files from my computer and also (through Syncthing) from my phone.
+
+https://syncthing.net
+https://raku.org
+https://taskwarrior.org
+
+Quick logger's user interface is as minimal as it gets. When I launch Quick logger, I'm greeted with a simple window where I can type plain text. Hit the "Log text" button, and voilà – the input is timestamped and saved as a file in my chosen directory. If I need to change the directory, the "Preferences" button brings up a window where I can set the notes folder and get back to logging.
+
+For the code-savvy folks out there, Quick logger is a neat example of what you can achieve with Go and Fyne. It's a testament to building functional, cross-platform apps without getting bogged down in the nitty-gritty of platform-specific details. Thanks to Fyne, I am pleased with how easy it is to make mobile Android apps in Go.
+
+Quick logger running on Android
+
+My Android apps will never be polished, but they will get the job done, and this is precisely how I want them to be. Minimalistic but functional. I could spend more time polishing Quick logger, but my Quick logger app then may be the same as any other notes app out there (complicated or bloated).
+
+

All easy-peasy?


+
+I did have some issues with the App logo for Android, though. Android always showed the default app icon and not my custom icon whenever I used a custom AndroidManifest.xml for custom app storage permissions. Without a custom AndroidAmnifest.xml the app icon would be displayed under Android, but then the app would not have the MANAGE_EXTERNAL_STORAGE permission, which is required for Quick logger to write to a custom directory. I found a workaround, which I commented on here at Github:
+
+https://github.com/fyne-io/fyne/issues/3077#issuecomment-1912697360
+
+What worked however (app icon showing up) was to clone the fyne project, change the occurances of android.permission.INTERNET to android.permission.MANAGE_EXTERNAL_STORAGE (as these are all the changes I want in my custom android manifest) in the source tree, re-compile fyne. Now all works. I know, this is more of an hammer approach!
+
+Hopefully, I won't need to use this workaround anymore. But for now, it is a fair tradeoff for what I am getting.
+
+I hope this will inspire you to write your own small mobile apps in Go using the awesome Fyne framework!
+
+E-Mail your comments to paul@nospam.buetow.org :-)
+
+Other Go related posts are:
+
+2023-04-09 Algorithms and Data Structures in Go - Part 1
+2024-03-03 A fine Fyne Android app for quickly logging ideas programmed in Go (You are currently reading this)
+
+Back to the main site
+
+
+
From `babylon5.buetow.org` to `*.buetow.cloud` @@ -8801,112 +8868,6 @@ http://www.gnu.org/software/src-highlite --> 2022-01-01 Bash Golf Part 2
2023-12-10 Bash Golf Part 3

-Back to the main site
- - -
- - Welcome to the Geminispace - - gemini://foo.zone/gemfeed/2021-04-24-welcome-to-the-geminispace.gmi - 2021-04-24T19:28:41+01:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - ASCII Art by Andy Hood! - -
-

Welcome to the Geminispace


-
-Published at 2021-04-24T19:28:41+01:00; Updated at 2021-06-18
-
-ASCII Art by Andy Hood!
-
-Have you reached this article already via Gemini? It requires a Gemini client; web browsers such as Firefox, Chrome, Safari, etc., don't support the Gemini protocol. The Gemini address of this site (or the address of this capsule as people say in Geminispace) is:
-
-gemini://foo.zone
-
-However, if you still use HTTP, you are just surfing the fallback HTML version of this capsule. In that case, I suggest reading on what this is all about :-).
-
-
-    /\
-   /  \
-  |    |
-  |NASA|
-  |    |
-  |    |
-  |    |
- '      `
- |Gemini|
- |      |
- |______|
-  '-`'-`   .
-  / . \'\ . .'
- ''( .'\.' ' .;'
-'.;.;' ;'.;' ..;;' AsH
-
-
-
-

Motivation


-
-

My urge to revamp my personal website


-
-For some time, I had to urge to revamp my personal website. Not to update the technology and its design but to update all the content (+ keep it current) and start a small tech blog again. So unconsciously, I began to search for an excellent platform to do all of that in a KISS (keep it simple & stupid) way.
-
-

My still great Laptop running hot


-
-Earlier this year (2021), I noticed that my almost seven-year-old but still great Laptop started to become hot and slowed down while surfing the web. Also, the Laptop's fan became quite noisy. This was all due to the additional bloat such as JavaScript, excessive use of CSS, tracking cookies+pixels, ads, and so on there was on the website.
-
-All I wanted was to read an interesting article, but after a big advertising pop-up banner appeared and made everything worse, I gave up and closed the browser tab.
-
-

Discovering the Gemini internet protocol


-
-Around the same time, I discovered a relatively new, more lightweight protocol named Gemini, which does not support all these CPU-intensive features like HTML, JavaScript, and CSS. Also, tracking and ads are unsupported by the Gemini protocol.
-
-The "downside" is that due to the limited capabilities of the Gemini protocol, all sites look very old and spartan. But that is not a downside; that is, in fact, a design choice people made. It is up to the client software how your capsule looks. For example, you could use a graphical client, such as Lagrange, with nice font renderings and colours to improve the appearance. Or you could use a very minimalistic command line black-and-white Gemini client. It's your (the user's) choice.
-
-Screenshot Amfora Gemini terminal client surfing this site
-Screenshot graphical Lagrange Gemini client surfing this site
-
-Why is there a need for a new protocol? As the modern web is a superset of Gemini, can't we use simple HTML 1.0 instead? That's a good and valid question. It is not a technical problem but a human problem. We tend to abuse the features once they are available. You can ensure that things stay efficient and straightforward as long as you are using the Gemini protocol. On the other hand, you can't force every website on the modern web to only create plain and straightforward-looking HTML pages.
-
-

My own Gemini capsule


-
-As it is effortless to set up and maintain your own Gemini capsule (Gemini server + content composed via the Gemtext markup language), I decided to create my own. What I like about Gemini is that I can use my favourite text editor and get typing. I don't need to worry about the style and design of the presence, and I also don't have to test anything in ten different web browsers. I can only focus on the content! As a matter of fact, I am using the Vim editor + its spellchecker + auto word completion functionality to write this.
-
-This site was generated with Gemtexter. You can read more about it here:
-
-Gemtexter - One Bash script to rule it all
-
-

Gemini advantages summarised


-
-
    -
  • Supports an alternative to the modern bloated web
  • -
  • Easy to operate and easy to write content
  • -
  • No need to worry about various web browser compatibilities
  • -
  • It's the client's responsibility how the content is designed+presented
  • -
  • Lightweight (although not as lightweight as the Gopher protocol)
  • -
  • Supports privacy (no cookies, no request header fingerprinting, TLS encryption)
  • -
  • Fun to play with (it's a bit geeky, yes, but a lot of fun!)
  • -

-

Dive into deep Gemini space


-
-Check out one of the following links for more information about Gemini. For example, you will find a FAQ that explains why the protocol is named Gemini. Many Gemini capsules are dual-hosted via Gemini and HTTP(S) so that people new to Gemini can sneak peek at the content with a regular web browser. Some people go as far as tri-hosting all their content via HTTP(S), Gemini and Gopher.
-
-gemini://geminiprotocol.net/
-https://geminiprotocol.net/
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Other related posts are:
-
-2021-04-24 Welcome to the Geminispace (You are currently reading this)
-2021-06-05 Gemtexter - One Bash script to rule it all
-2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
-2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again²
-2023-07-21 Gemtexter 2.1.0 - Let's Gemtext again³
-
Back to the main site
diff --git a/gemfeed/atom.xml.tmp b/gemfeed/atom.xml.tmp deleted file mode 100644 index 7e0df21a..00000000 --- a/gemfeed/atom.xml.tmp +++ /dev/null @@ -1,6544 +0,0 @@ - - - 2024-03-03T00:08:32+02:00 - foo.zone feed - To be in the .zone! - - - gemini://foo.zone/ - - A fine Fyne Android app for quickly logging ideas programmed in Go - - gemini://foo.zone/gemfeed/2024-03-03-a-fine-fyne-android-app-for-quickly-logging-ideas-programmed-in-golang.gmi - 2024-03-03T00:07:21+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - I am an ideas person. I find myself frequently somewhere on the streets with an idea in my head but no journal paper noting it down. - -
-

A fine Fyne Android app for quickly logging ideas programmed in Go


-
-Published at 2024-03-03T00:07:21+02:00
-
-I am an ideas person. I find myself frequently somewhere on the streets with an idea in my head but no journal paper noting it down.
-
-I have tried many note apps for my Android (I use GrapheneOS) phone. Most of them either don't do what I want, are proprietary software, or are too bloated. I was never into mobile app development, as I'm not too fond of the complexity of the developer toolchains. I don't want to use Android Studio (as a NeoVim user), and I don't want to use Java or Kotlin. I want to use a language I know (and like) for mobile app development. Go would be one of those languages.
-
-Quick logger Logo
-
-Enter Quick logger – a compact GUI Android (well, cross-platform due to Fyne) app I've crafted using Go and the nifty Fyne framework. With Fyne, the app can be compiled easily into an Android APK. As of this writing, this app's whole Go source code is only 75 lines short!! This little tool is designed for spontaneous moments, allowing me to quickly log my thoughts as plain text files on my Android phone. There are no fancy file formats. Just plain text!
-
-https://codeberg.org/snonux/quicklogger
-https://fyne.io
-https://go.dev
-
-There's no need to navigate complex menus or deal with sync issues. I jot down my Idea, and Quick logger saves it to a plain text file in a designated local folder on my phone. There is one text file per note (timestamp in the file name). Once logged, the file can't be edited anymore (it keeps it simple). If I want to correct or change a note, I simply write a new one. My notes are always small (usually one short sentence each), so there isn't the need for an edit functionality. I can edit them later on my actual computer if I want to.
-
-With Syncthing, the note files are then synchronised to my home computer to my ~/Notes directory. From there, a Raku script adds them to my Taskwarrior DB so that I can process them later (e.g. take action on that one Idea I had). That then will delete the original note files from my computer and also (through Syncthing) from my phone.
-
-https://syncthing.net
-https://raku.org
-https://taskwarrior.org
-
-Quick logger's user interface is as minimal as it gets. When I launch Quick logger, I'm greeted with a simple window where I can type plain text. Hit the "Log text" button, and voilà – the input is timestamped and saved as a file in my chosen directory. If I need to change the directory, the "Preferences" button brings up a window where I can set the notes folder and get back to logging.
-
-For the code-savvy folks out there, Quick logger is a neat example of what you can achieve with Go and Fyne. It's a testament to building functional, cross-platform apps without getting bogged down in the nitty-gritty of platform-specific details. Thanks to Fyne, I am pleased with how easy it is to make mobile Android apps in Go.
-
-Quick logger running on Android
-
-My Android apps will never be polished, but they will get the job done, and this is precisely how I want them to be. Minimalistic but functional. I could spend more time polishing Quick logger, but my Quick logger app then may be the same as any other notes app out there (complicated or bloated).
-
-

All easy-peasy?


-
-I did have some issues with the App logo for Android, though. Android always showed the default app icon and not my custom icon whenever I used a custom AndroidManifest.xml for custom app storage permissions. Without a custom AndroidAmnifest.xml the app icon would be displayed under Android, but then the app would not have the MANAGE_EXTERNAL_STORAGE permission, which is required for Quick logger to write to a custom directory. I found a workaround, which I commented on here at Github:
-
-https://github.com/fyne-io/fyne/issues/3077#issuecomment-1912697360
-
-What worked however (app icon showing up) was to clone the fyne project, change the occurances of android.permission.INTERNET to android.permission.MANAGE_EXTERNAL_STORAGE (as these are all the changes I want in my custom android manifest) in the source tree, re-compile fyne. Now all works. I know, this is more of an hammer approach!
-
-Hopefully, I won't need to use this workaround anymore. But for now, it is a fair tradeoff for what I am getting.
-
-I hope this will inspire you to write your own small mobile apps in Go using the awesome Fyne framework!
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Other Go related posts are:
-
-2023-04-09 Algorithms and Data Structures in Go - Part 1
-2024-03-03 A fine Fyne Android app for quickly logging ideas programmed in Go (You are currently reading this)
-
-Back to the main site
-
-
-
- - From `babylon5.buetow.org` to `*.buetow.cloud` - - gemini://foo.zone/gemfeed/2024-02-04-from-babylon5.buetow.org-to-.cloud.gmi - 2024-02-04T00:50:50+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - Recently, my employer sent me to a week-long AWS course. After the course, there wasn't any hands-on project I could dive into immediately, so I moved parts of my personal infrastructure to AWS to level up a bit through practical hands-on. - -
-

From babylon5.buetow.org to *.buetow.cloud


-
-Published at 2024-02-04T00:50:50+02:00
-
-Recently, my employer sent me to a week-long AWS course. After the course, there wasn't any hands-on project I could dive into immediately, so I moved parts of my personal infrastructure to AWS to level up a bit through practical hands-on.
-
-So, I migrated all of my Docker-based self-hosted services to AWS. Usually, I am not a big fan of big cloud providers and instead use smaller hosters or indie providers and self-made solutions. However, I also must go with the times and try out technologies currently hot on the job market. I don't want to become the old man who yells at cloud :D
-
-Old man yells at cloud
-
-

The old *.buetow.org way


-
-Before the migration, all those services were reachable through buetow.org-subdomains (Buetow is my last name) and ran on Docker containers on a single Rocky Linux 9 VM at Hetzner. And there was a Nginx reverse proxy with TLS offloading (with Let's Encrypt certificates). The Rocky Linux 9's hostname was babylon5.buetow.org (based on the Science Fiction series).
-
-https://en.wikipedia.org/wiki/Babylon_5
-
-The downsides of this setup were:
-
-
    -
  • Not highly available. If the server goes down, no service is reachable until it's repaired. To be fair, the Hetzner cloud VM is redundant by itself and would have re-spawned on a different worker node, I suppose.
  • -
  • Manual installation.
  • -

-About the manual installation part: I could have used a configuration management system like Rexify, Puppet, etc. But I decided against it back in time, as setting up Docker containers isn't so complicated through simple start scripts. And it's only a single Linux box where a manual installation is less painful. However, regular backups (which Hetzner can do automatically for you) were a must.
-
-The benefits of this setup were:
-
-
    -
  • KISS (Keep it Simple Stupid)
  • -
  • Cheap
  • -

-

I kept my buetow.org OpenBSD boxes alive


-
-As pointed out, I only migrated the Docker-based self-hosted services (which run on the Babylon 5 Rocky Linux box) to AWS. Many self-hostable apps come with ready-to-use container images, making deploying them easy.
-
-My other two OpenBSD VMs (blowfish.buetow.org, hosted at Hetzner, and fishfinger.buetow.org, hosted at OpenBSD Amsterdam) still run (and they will keep running) the following services:
-
-
    -
  • HTTP server for my websites (e.g. https://foo.zone, ...)
  • -
  • ACME for Let's Encrypt TLS certificate auto-renewal.
  • -
  • Gemini server for my capsules (e.g. gemini://foo.zone)
  • -
  • Authoritative DNS servers for my domains (but buetow.cloud, which is on Route 53 now)
  • -
  • Mail transfer agent (MTA)
  • -
  • My Gogios monitoring system.
  • -
  • My IRC bouncer.
  • -

-It is all automated with Rex, aka Rexify. This OpenBSD setup is my "fun" or "for pleasure" setup. Whereas the Rocky Linux 9 one I always considered the "pratical means to the end"-setup to have 3rd party Docker containers up and running with as little work as possible.
-
-(R)?ex, the friendly automation framework
-KISS server monitoring with Gogios
-Let's encrypt with OpenBSD and Rex
-
-

The new *.buetow.cloud way


-
-With AWS, I decided to get myself a new domain name, as I could fully separate my AWS setup from my conventional setup and give Route 53 as an authoritative DNS a spin.
-
-I decided to automate everything with Terraform, as I wanted to learn to use it as it appears standard now in the job market.
-
-All services are installed automatically to AWS ECS Fargate. ECS is AWS's Elastic Container Service, and Fargate automatically manages the underlying hardware infrastructure (e.g., how many CPUs, RAM, etc.) for me. So I don't have to bother about having enough EC2 instances to serve my demands, for example.
-
-The authoritative DNS for the buetow.cloud domain is AWS Route 53. TLS certificates are free here at AWS and offloaded through the AWS Application Load Balancer. The LB acts as a proxy to the ECS container instances of the services. A few services I run in ECS Fargate also require the AWS Network Load Balancer.
-
-All services require some persistent storage. For that, I use an encrypted EFS file system, automatically replicated across all AZs (availability zones) of my region of choice, eu-central-1.
-
-In case of an AZ outage, I could re-deploy all the failed containers in another AZ, and all the data would still be there.
-
-The EFS automatically gets backed up by AWS for me following their standard Backup schedule. The daily backups are kept for 30 days.
-
-Domain registration, TLS certificate configuration and configuration of the EFS backup were quickly done through the AWS web interface. These were only one-off tasks, so they weren't fully automated through Terraform.
-
-You can find all Terraform manifests here:
-
-https://codeberg.org/snonux/terraform
-
-Whereas:
-
-
    -
  • org-buetow-base sets up the bare VPC (IPv4 and IPv6 subnets in 3 AZs, EFS, ECR (the AWS container registry for some self-built containers) and Route 53 zone. It's the requirement for most other Terraform manifests in this repository.
  • -
  • org-buetow-bastion sets up a minimal Amazon Linux EC2 instance where I can manually SSH into and look at the EFS file system (if required).
  • -
  • org-buetow-elb sets up the Elastic Load Balancer, a prerequisite for any service running in ECS Fargate.
  • -
  • org-buetow-ecs finally sets up and deploys all the Docker apps mentioned above. Any apps can be turned on or off via the variables.tf file.
  • -

-

The container apps


-
-And here, finally, is the list of all the container apps my Terraform manifests deploy. The FQDNs here may not be reachable. I spin them up only on demand (for cost reasons). All services are fully dual-stacked (IPv4 & IPv6).
-
-

flux.buetow.cloud


-
-Miniflux is a minimalist and opinionated feed reader. With the move to AWS, I also retired my bloated instance of NextCloud. So, with Miniflux, I retired from NextCloud News.
-
-Miniflux requires two ECS containers. One is the Miniflux app, and the other is the PostgreSQL DB.
-
-https://miniflux.app/
-
-
-

audiobookshelf.buetow.cloud


-
-Audiobookshelf was the first Docker app I installed. It is a Self-hosted audiobook and podcast server. It comes with a neat web interface, and there is also an Android app available, which works also in offline mode. This is great, as I only have the ECS instance sometimes running for cost savings.
-
-With Audiobookshelf, I replaced my former Audible subscription and my separate Podcast app. For Podcast synchronisation I used to use the Gpodder NextCloud sync app. But that one I retired now with Audiobookshelf as well :-)
-
-https://www.audiobookshelf.org
-
-

syncthing.buetow.cloud


-
-Syncthing is a continuous file synchronisation program. In real-time, it synchronises files between two or more computers, safely protected from prying eyes. Your data is your own, and you deserve to choose where it is stored, whether it is shared with some third party, and how it's transmitted over the internet.
-
-With Syncthing, I retired my old NextCloud Files and file sync client on all my devices. I also quit my NextCloud Notes setup. All my Notes are now plain Markdown files in a Notes directory. On Android, I can edit them with any text or Markdown editor (e.g. Obsidian), and they will be synchronised via Syncthing to my other computers, both forward and back.
-
-I use Syncthing to synchronise some of my Phone's data (e.g. Notes, Pictures and other documents). Initially, I synced all of my pictures, videos, etc., with AWS. But that was pretty expensive. So for now, I use it only whilst travelling. Otherwise, I will use my Syncthing instance here on my LAN (I have a cheap cloud backup in AWS S3 Glacier Deep Archive, but that's for another blog post).
-
-https://syncthing.net/
-
-

radicale.buetow.cloud


-
-Radicale is an excellent minimalist WebDAV calendar and contact synchronisation server. It was good enough to replace my NextCloud Calendar and NextCloud Contacts setup. Unfortunately, there wasn't a ready-to-use Docker image. So, I created my own.
-
-On Android, it works great together with the DAVx5 client for synchronisation.
-
-https://radicale.org/
-https://codeberg.org/snonux/docker-radicale-server
-https://www.davx5.com/
-
-

bag.buetow.cloud


-
-Wallabag is a self-hostable "save now - read later" service, and it also comes with an Android app which also has an offline mode. Think of Getpocket, but open-source!
-
-https://wallabag.org/
-https://github.com/wallabag/wallabag
-
-

anki.buetow.cloud


-
-Anki is a great (the greatest) flash-card learning program. I am currently learning Bulgarian as my 3rd language. There is also an Android app that has an offline mode, and advanced users can also self-host the server anki-sync-server. For some reason (not going into the details here), I had to build my own Docker image for the server.
-
-https://apps.ankiweb.net/
-https://codeberg.org/snonux/docker-anki-sync-server
-
-

vault.buetow.cloud


-
-Vaultwarden is an alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. So, this is a great password manager server which can be used with any Bitwarden Android app.
-
-I currently don't use it, but I may in the future. I made it available in my ECS Fargate setup anyway for now.
-
-https://github.com/dani-garcia/vaultwarden
-
-I currently use geheim, a Ruby command line tool I wrote, as my current password manager. You can read a little bit about it here under "More":
-
-Sweating the small stuff
-
-

bastion.buetow.cloud


-
-This is a tiny ARM-based Amazon Linux EC2 instance, which I sometimes spin up for investigation or manual work on my EFS file system in AWS.
-
-

Conclusion


-
-I have learned a lot about AWS and Terraform during this migration. This was actually my first AWS hands-on project with practical use.
-
-All of this was not particularly difficult (but at times a bit confusing). I see the use of Terraform managing more extensive infrastructures (it was even helpful for my small setup here). At least I know now what all the buzz is about :-). I don't think Terraform's HCL is a nice language. It get's it's job done, but it could be more elegant IMHO.
-
-Deploying updates to AWS are much easier, and some of the manual maintenance burdens of my Rocky Linux 9 VM are no longer needed. So I will have more time for other projects!
-
-Will I keep it in the cloud? I don't know yet. But maybe I won't renew the buetow.cloud domain and instead will use *.cloud.buetow.org or *.aws.buetow.org subdomains.
-
-Will the AWS setup be cheaper than my old Rocky Linux setup? It might be more affordable as I only turn ECS and the load balancers on or off on-demand. Time will tell! The first forecasts suggest that it will be around the same costs.
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Back to the main site
-
-
-
- - One reason why I love OpenBSD - - gemini://foo.zone/gemfeed/2024-01-13-one-reason-why-i-love-openbsd.gmi - 2024-01-13T22:55:33+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - HKISSFISHKISSFISHKISSFISHKISSFISH KISS - -
-

One reason why I love OpenBSD


-
-Published at 2024-01-13T22:55:33+02:00
-
-
-           FISHKISSFISHKIS               
-       SFISHKISSFISHKISSFISH            F
-    ISHK   ISSFISHKISSFISHKISS         FI
-  SHKISS   FISHKISSFISHKISSFISS       FIS
-HKISSFISHKISSFISHKISSFISHKISSFISH    KISS
-  FISHKISSFISHKISSFISHKISSFISHKISS  FISHK
-      SSFISHKISSFISHKISSFISHKISSFISHKISSF
-  ISHKISSFISHKISSFISHKISSFISHKISSF  ISHKI
-SSFISHKISSFISHKISSFISHKISSFISHKIS    SFIS
-  HKISSFISHKISSFISHKISSFISHKISS       FIS
-    HKISSFISHKISSFISHKISSFISHK         IS
-       SFISHKISSFISHKISSFISH            K
-         ISSFISHKISSFISHK               
-
-
-I just upgraded my OpenBSD's from 7.3 to 7.4 by following the unattended upgrade guide:
-
-https://www.openbsd.org/faq/upgrade74.html
-
- -
$ doas installboot sd0 # Update the bootloader (not for every upgrade required)
-$ doas sysupgrade # Update all binaries (including Kernel)
-
-
-sysupgrade downloaded and upgraded to the next release and rebooted the system. After the reboot, I run:
-
- -
$ doas sysmerge # Update system configuration files
-$ doas pkg_add -u # Update all packages
-$ doas reboot # Just in case, reboot one more time
-
-
-That's it! Took me around 5 minutes in total! No issues, only these few comands, only 5 minutes! It just works! No problems, no conflicts, no tons (actually none) config file merge conflicts.
-
-I followed the same procedure the previous times and never encountered any difficulties with any OpenBSD upgrades.
-
-I have seen upgrades of other Operating Systems either take a long time or break the system (which takes manual steps to repair). That's just one of many reasons why I love OpenBSD! There appear never to be any problems. It just gets its job done!
-
-The OpenBSD Project
-
-BTW: are you looking for an opinionated OpenBSD VM hoster? OpenBSD Amsterdam may be for you. They rock (I am having a VM there, too)!
-
-https://openbsd.amsterdam
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Other *BSD related posts are:
-
-2016-04-09 Jails and ZFS with Puppet on FreeBSD
-2022-07-30 Let's Encrypt with OpenBSD and Rex
-2022-10-30 Installing DTail on OpenBSD
-2024-01-13 One reason why I love OpenBSD (You are currently reading this)
-
-Back to the main site
-
-
-
- - Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect - - gemini://foo.zone/gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi - 2024-01-09T18:35:48+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - This is the third part of my Site Reliability Engineering (SRE) series. I am currently employed as a Site Reliability Engineer and will try to share what SRE is about in this blog series. - -
-

Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect


-
-Published at 2024-01-09T18:35:48+02:00
-
-This is the third part of my Site Reliability Engineering (SRE) series. I am currently employed as a Site Reliability Engineer and will try to share what SRE is about in this blog series.
-
-2023-08-18 Site Reliability Engineering - Part 1: SRE and Organizational Culture
-2023-11-19 Site Reliability Engineering - Part 2: Operational Balance in SRE
-2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect (You are currently reading this)
-
-
-                    ..--""""----..                 
-                 .-"   ..--""""--.j-.              
-              .-"   .-"        .--.""--..          
-           .-"   .-"       ..--"-. \/    ;         
-        .-"   .-"_.--..--""  ..--'  "-.  :         
-      .'    .'  /  `. \..--"" __ _     \ ;         
-     :.__.-"    \  /        .' ( )"-.   Y          
-     ;           ;:        ( )     ( ).  \         
-   .':          /::       :            \  \        
- .'.-"\._   _.-" ; ;      ( )    .-.  ( )  \       
-  "    `."""  .j"  :      :      \  ;    ;  \      
-    bug /"""""/     ;      ( )    "" :.( )   \     
-       /\    /      :       \         \`.:  _ \    
-      :  `. /        ;       `( )     (\/ :" \ \   
-       \   `.        :         "-.(_)_.'   t-'  ;  
-        \    `.       ;                    ..--":  
-         `.    `.     :              ..--""     :  
-           `.    "-.   ;       ..--""           ;  
-             `.     "-.:_..--""            ..--"   
-               `.      :             ..--""        
-                 "-.   :       ..--""              
-                    "-.;_..--""                    
-
-
-
-

On-Call Culture and the Human Aspect: Prioritising Well-being in the Realm of Reliability


-
-Site Reliability Engineering is synonymous with ensuring system reliability, but the human factor is an often-underestimated part of this discipline. Ensuring an healthy on-call culture is as critical as any technical solution. The well-being of the engineers is an important factor.
-
-Firstly, a healthy on-call rotation is about more than just managing and responding to incidents. It's about the entire ecosystem that supports this practice. This involves reducing pain points, offering mentorship, rapid iteration, and ensuring that engineers have the right tools and processes. One ceavat is, that engineers should be willing to learn. Especially in on-call rotation embedding SREs with other engineers (for example Software Engineers or QA Engineers), it's difficult to motivate everyone to engage. QA Engineers want to test the software, Software Engineers want to implement new features; they don't want to troubleshoot and debug production incidents. It can be depressing for the mentoring SRE.
-
-Furthermore, the metrics that measure the success of an on-call experience are only sometimes straightforward. While one might assume that fewer pages translate to better on-call expertise (which is true to a degree, as who wants to receive a page out of office hours?), it's not always the volume of pages that matters most. Trust, ownership, accountability, and effective communication play the important roles.
-
-An important part is giving feedback about the on-call experience to ensure continuous learning. If alerts are mostly noise, they should be tuned or even eliminated. If alerts are actionable, can recurring tasks be automated? If there are knowledge gaps, is the documentation not good enough? Continuous retrospection ensures that not only do systems evolve, but the experience for the on-call engineers becomes progressively better.
-
-Onboarding for on-call duties is a crucial aspect of ensuring the reliability and efficiency of systems. This process involves equipping new team members with the knowledge, tools, and support to handle incidents confidently. It begins with an overview of the system architecture and common challenges, followed by training on monitoring tools, alerting mechanisms, and incident response protocols. Shadowing experienced on-call engineers can offer practical exposure. Too often, new engineers are thrown into the cold water without proper onboarding and training because the more experienced engineers are too busy fire-fighting production issues in the first place.
-
-An always-on, always-alert culture can lead to burnout. Engineers should be encouraged to recognise their limits, take breaks, and seek support when needed. This isn't just about individual health; a burnt-out engineer can have cascading effects on the entire team and the systems they manage. A successful on-call culture ensures that while systems are kept running, the engineers are kept happy, healthy, and supported. The more experienced engineers should take time to mentor the junior engineers, but the junior engineers should also be fully engaged, try to investigate and learn new things by themselves.
-
-For the junior engineer, it's too easy to fall back and ask the experts in the team every time an issue arises. This seems reasonable, but serving recipes for solving production issues on a silver tablet won't scale forever, as there are infinite scenarios of how production systems can break. So every engineer should learn to debug, troubleshoot and resolve production incidents independently. The experts will still be there for guidance and step in when the junior gets stuck after trying, but the experts should also learn to step down so that lesser experienced engineers can step up and learn. But mistakes can always happen here; that's why having a blameless on-call culture is essential.
-
-A blameless on-call culture is a must for a safe and collaborative environment where engineers can effectively respond to incidents without fear of retribution. This approach acknowledges that mistakes are a natural part of the learning and innovation process. When individuals are assured they won't be punished for errors, they're more likely to openly discuss mistakes, allowing the entire team to learn and grow from each incident. Furthermore, a blameless culture promotes psychological safety, enhances job satisfaction, reduces burnout, and ensures that talent remains committed and engaged.
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Back to the main site
-
-
-
- - Bash Golf Part 3 - - gemini://foo.zone/gemfeed/2023-12-10-bash-golf-part-3.gmi - 2023-12-10T11:35:54+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - This is the third blog post about my Bash Golf series. This series is random Bash tips, tricks, and weirdnesses I have encountered over time. - -
-

Bash Golf Part 3


-
-Published at 2023-12-10T11:35:54+02:00
-
-
-    '\       '\        '\                   .  .          |>18>>
-      \        \         \              .         ' .     |
-     O>>      O>>       O>>         .                 'o  |
-      \       .\. ..    .\. ..   .                        |
-      /\    .  /\     .  /\    . .                        |
-     / /   .  / /  .'.  / /  .'    .                      |
-jgs^^^^^^^`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-                        Art by Joan Stark, mod. by Paul Buetow
-
-
-This is the third blog post about my Bash Golf series. This series is random Bash tips, tricks, and weirdnesses I have encountered over time.
-
-2021-11-29 Bash Golf Part 1
-2022-01-01 Bash Golf Part 2
-2023-12-10 Bash Golf Part 3 (You are currently reading this)
-
-

FUNCNAME


-
-FUNCNAME is an array you are looking for a way to dynamically determine the name of the current function (which could be considered the callee in the context of its own execution), you can use the special variable FUNCNAME. This is an array variable that contains the names of all shell functions currently in the execution call stack. The element FUNCNAME[0] holds the name of the currently executing function, FUNCNAME[1] the name of the function that called that, and so on.
-
-This is particularly useful for logging when you want to include the callee function in the log output. E.g. look at this log helper:
-
- -
#!/usr/bin/env bash
-
-log () {
-    local -r level="$1"; shift
-    local -r message="$1"; shift
-    local -i pid="$$"
-
-    local -r callee=${FUNCNAME[1]}
-    local -r stamp=$(date +%Y%m%d-%H%M%S)
-
-    echo "$level|$stamp|$pid|$callee|$message" >&2
-}
-
-at_home_friday_evening () {
-    log INFO 'One Peperoni Pizza, please'
-}
-
-at_home_friday_evening
-
-
-The output is as follows:
-
- -
./logexample.sh
-INFO|20231210-082732|123002|at_home_friday_evening|One Peperoni Pizza, please
-
-
-

:(){ :|:& };:


-
-This one may be widely known already, but I am including it here as I found a cute image illustrating it. But to break :(){ :|:& };: down:
-
-
    -
  • :(){ } is really a declaration of the function :
  • -
  • The ; is ending the current statement
  • -
  • The : at the end is calling the function :
  • -
  • :|:& is the function body
  • -

-Let's break down the function body :|:&:
-
-
    -
  • The first : is calling the function recursively
  • -
  • The |: is piping the output to the function : again (parallel recursion)
  • -
  • The & lets it run in the background.
  • -

-So, it's a fork bomb. If you run it, your computer will run out of resources eventually. (Modern Linux distributions could have reasonable limits configured for your login session, so it won't bring down your whole system anymore unless you run it as root!)
-
-And here is the cute illustration:
-
-Bash fork bomb
-
-

Inner functions


-
-Bash defines variables as it is interpreting the code. The same applies to function declarations. Let's consider this code:
-
- -
#!/usr/bin/env bash
-
-outer() {
-  inner() {
-    echo 'Intel inside!'
-  }
-  inner
-}
-
-inner
-outer
-inner
-
-
-And let's execute it:
-
-
-❯ ./inner.sh
-/tmp/inner.sh: line 10: inner: command not found
-Intel inside!
-Intel inside!
-
-
-What happened? The first time inner was called, it wasn't defined yet. That only happens after the outer run. Note that inner will still be globally defined. But functions can be declared multiple times (the last version wins):
-
- -
#!/usr/bin/env bash
-
-outer1() {
-  inner() {
-    echo 'Intel inside!'
-  }
-  inner
-}
-
-outer2() {
-  inner() {
-    echo 'Wintel inside!'
-  }
-  inner
-}
-
-outer1
-inner
-outer2
-inner
-
-
-And let's run it:
-
-
-❯ ./inner2.sh
-Intel inside!
-Intel inside!
-Wintel inside!
-Wintel inside!
-
-
-

Exporting functions


-
-Have you ever wondered how to execute a shell function in parallel through xargs? The problem is that this won't work:
-
- -
#!/usr/bin/env bash
-
-some_expensive_operations() {
-  echo "Doing expensive operations with '$1' from pid $$"
-}
-
-for i in {0..9}; do echo $i; done \
-  | xargs -P10 -I{} bash -c 'some_expensive_operations "{}"'
-
-
-We try here to run ten parallel processes; each of them should run the some_expensive_operations function with a different argument. The arguments are provided to xargs through STDIN one per line. When executed, we get this:
-
-
-❯ ./xargs.sh
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_expensive_operations: command not found
-bash: line 1: some_e