I've been using i3 as my window manager for the past 7 years. It's great and you should check it out! However, one issue I have is that by default I don't get an obvious notification when my battery is low. My personal laptop is getting old and the battery significantly drains when it is put to sleep. So recently it happened several times that I woke it up, didn't check my battery, and had it die…
TL;DR : I wanted a keybinding to toggle between light and dark colorschemes and have the change apply immediately to all my WezTerm windows and Neovim instances across multiple running processes, using pure Lua configurations. If you want to skip the context and jump straight to the implementation, go to the solution . Recently I've been reworking my terminal setup. After years of using…
This article is a work in progress Goal 🔗 Replace my current workflow of Gnome Terminal + tmux: Get rid of tmux (Some graphic inconsistencies, one dependency in my dotfiles) Keep my current keyboard centric workflow Ideally choose a tool which works well with Wayland based WM. Why not CPU or even GPU acceleration, NO electron based application Easy to install and update The terminal window can…
See also my Javascript golf page Resources 🔗 Useful code to copy/paste in codingame "fastest" challenges: def log ( * args ) : import sys ; print ( * args , file = sys . stderr ) Input parsing 🔗 To call create an input from calling the same function several times: [ input ( ) for i in range ( 8 ) ] [ i ( ) for i in [ input ] * 8 ] [ input ( ) for _ in "1" * 8 ] Note that the list comprehension…
This article is a work in progress Supporting software architecture 🔗 The first component needed for this system is a logging system which allows me to Receive HTTP calls from the sensors Store and display applicative logs of these calls for debugging purpose Store and display the metrics gathered by the sensors To get these features I'm using my API and an Elasticsearch cluster that I setup…
This post is a copy-past of a personnal message sent to a relative to talk about my project. A more complete and technical version is available here . L'idée est de mettre en place des capteurs qui me remontent régulièrement la température et l'humidité des différentes pièces de l'appartement et de l'extérieur de l'appartement, de corréler ces données aux données de stations météo France autour de…
Notes about how I set up an OpenSearch cluster to manage the logs of my api . Goal: Set up the cheapest ELK cluster possible to - Ingest the logs of my API - Maybe use as a tracking database for my habits TODO: Review costs after some usage. The idea was to benefit from the free tier, after one week it seems I don't get it. Review UltraWarm nodes they might be usefull for my usage if I can't…
I have Dependabot set on many of my repos but I often get too lazy to check the PRs and merge them. On my api repo this is an issue because I really want to keep dependencies up to date. Here is what I did to have Dependabot's PRs merged automatically as they are created. The file lives there on Github At no point there is a need to generate a github access token by yourself. Dependabot will use…
See also my Python golf page This page is a work in progress. I want to keep adding stuff I already know when I think of using it and new stuff when I discover it. I love to play on codingame it's a great way to keep your algorithmic skills sharp while working on playful problems. One of my favorite game on this site is the Clash of Code : a short competition against up to 8 players lasting at…
Recently I created a script which automatically downloads NASA's Astronomy Picture of the Day and sets it as the wallpaper of my computer. This was fun but I also wanted to set the picture as my virtual background in Zoom so that I have another pretext to bore my coworkers with space stuff my teammates could also enjoy the cool astronomy pictures of the Nasa. The issue was that when I dug into…