(The original article had typos because Grammarly did not work correctly and disabled my browser’s dictionary. My apologies.) Yocto is great to build customized Linux distributions from source code. It is a very complex tool and needs to build a huge variety of software projects from source code. It often happens that a Linux distribution … Continue reading Development and Production gaps in Yocto →
I try hard to make my integration tests run in docker containers to guarantee they are not mistakenly dependent on my system and that they test the system as if a real deployment was in place. Sometimes a test depends on some startup string existing in the logs. An example is that my server emits … Continue reading How to write to a docker container’s log from another process →
Recently I had a situation where I wanted to turn a private git repository, public. Immediately the problem of secrets in the repository’s history was raised. I know that secrets should not be committed but, due to practical reasons it often happens. This means that before publishing a repository its secrets need to be sanitized … Continue reading Scanning and removing secrets from git repositories →
I recently needed some boilerplate code to load env files into IConfigurationBuilder. Asp.net is notorious for having amazingly fragmented APIs, so I needed 3 static classes, simply for one method that loads the env file configuration and loads it to the configuration. The extension has the same license as dotnet due to me lifting the … Continue reading Creating an IConfigurationBuilder method extension to load env files →
One of my favorite ways of passing information to a program without leakage of these secrets is environmental variables. The rationale is: Reading from a plain text with no permissions set, will lead to any user in the system to be able to read this file which is unnaceptable. Reading from a plain text file … Continue reading Environmental variables for secrets. A simple threat analysis →
Recently I deleted my .bashrc and .bash_history by mistake. I lost a good deal of dear commands plus aliases and needed to come up with another .bashrc to get infinite history and a nice prompt. There are often one-off commands for some very specific tasks that are rarely used but very useful. Such one-offs often … Continue reading bash: infinite history and a nice prompt →
On the topic of Infinite loops on crashing systemd units, I got to the point where I needed an automatic way to verify that my systems had the correct systemd unit defaults. Let’s assume we have the following configuration: It proved to not be straightforward because the documentation at the time was wrong. Quoting it: For … Continue reading Validating global systemd defaults through properties →
I work on embedded boards quite a lot, and often the ps command utility is a bare bones busybox stripped down version without options. One of the issues I faced while using it is that it truncates the process command line, and options that would allow it to display an untruncated output are not available. … Continue reading Accessing a process command line without ps →
When using systemd it is often wise to set mission specific “global defaults”. In this article we will look at the case of “how often a unit can fail in a given amount of time” and it’s impacts. systemd experts will create their units with properties set to the correct values for their specific units, … Continue reading Infinite loops on crashing systemd units. →
As previously stated, this blog is a place for me to record some notes on things that i learn on my day to day. One of the things I learned and whished I knew when doing embedded development was how to easily flash certain files in an embedded device’s storage card, without needing to do … Continue reading u-boot exposing mass storage to usb interface →
Something went wrong. Please refresh the page and/or try again.
Follow My Blog
Get new content delivered directly to your inbox.