RSSAmplifier

Blog

Electricmonk.nl weblog

Ferry Boender s ramblings

electricmonk.nlRSS feed ↗10 posts

Latest posts

Bash custom auto completion with path completion

The problem I have some custom bash auto completions configured in my .bashrc. For example, one for completing SSH hosts: _complete_ssh () { cur="${COMP_WORDS[COMP_CWORD]}" comp_words="$(cat ~/.ssh/config grep "^Host " awk '{print $2}')" COMPREPLY=($(compgen -W "${comp_words}" -- $cur)) return 0 } complete -F _complete_ssh ssh scp sftp sshfs This extracts hostnames from ~/.ssh/config and [ ]

Resizing an snap LXD btrfs loopback image

The problem I m using LXD (https://linuxcontainers.org/) to run some local containers for development on my desktop. This is mostly for security reasons, to prevent all kinds of supply chain attacks. You know, the whole well-known and near impossible Don t run untrusted code on your computer thing. After creating a fair amount of containers, I got [ ]

Re: The shell and its crappy handling of whitespace

I saw an interesting article on The Universe of Discourse about The shell and its crappy handling of whitespace. I m about thirty-five years into Unix shell programming now, and I continue to despise it. The shell s treatment of whitespace is a constant problem. The fact that for i in *.jpg; do cp $i /tmp done [ ]

An Ansible safeguard

At my work, we use ansible to provision all kinds of things, from servers to monitoring. Ansible is very powerful, but with great power comes great responsibility. One downside of automating many things with ansible is that you could also accidentally destroy a lot of things with a single wrong command. In a perfect world [ ]

Firefox SEC_ERROR_OCSP_FUTURE_RESPONSE [fixed]

My dad had an issue with Firefox failing on certain sites with a SEC_ERROR_OCSP_FUTURE_RESPONSE error. He recently replaced a dead battery in his desktop computer. These batteries are used to keep time when the PC is off. These days generally you won t ever have to replace it, since computers are throwaway devices now. They ll fail [ ]

Tuxedo Computers TUXEDO Pulse 14 (Gen1) Review

Last Tuesday my new Tuxedo Computers Pulse 14 laptop arrived. I ve been running it as my daily driver since then (6 days) and this is my review of it. Update after 2 years I originally wrote this post in august of 2021. It is now august 2023, and I ve been using this laptop as my [ ]

An Audio / Video profile switcher (and app launcher) script for Linux

Since the start of Corona, my company has been mostly working remote. That means more video conference meetings. A lot more. So much in fact, that I decided to automate the process of setting everything up correctly for that and other audio video profiles. For example, my webcam is in my laptop, whose screen I [ ]

Finding and removing packages installed from non-standard repos in Ubuntu

Update: Oh, look, right in the nick of time: Valve Steam through 2021-04-10, when a Source engine game is installed, allows remote authenticated users to execute arbitrary code because of a buffer overflow that occurs for a Steam invite after one click As part of my big spring cleaning, as well as given all the [ ]

Shared folder on Virtualbox Ubuntu 20.04 guest fails with “No such device or address”

In an Ubuntu 18.04 virtual machine in VirtualBox, I could define a Shared Folder like so: And then mount it like this: mount -t vboxsf Projects -o uid=1000,gid=1000 /home/fboender/Projects/ Or with the equivalent fstab entry like this: Projects /home/fboender/Projects/ vboxsf defaults,uid=1000,gid=1000 0 0 This fails on an Ubuntu 20.04 guest with the following error: /sbin/mount.vboxsf: [ ]

Sla (Simple Little Automator) v1.1 now supports long rule descriptions

Version 1.1 of the Simple Little Automator adds the ability to have long descriptions for build rules. For example: install () { # Install sla # Install sla to $PREFIX (/usr/local by default). # # You can specify the prefix with an environment variable: # # $ PREFIX=/usr sla install # Set the prefix PREFIX=${PREFIX:-/usr/local} [ ]