Recent Posts

Change resolution from command line in Ubuntu 18.04’s Wayland

Wayland doesn’t allow applications to change resolution, and there’s no official utility to do that. There’s a third party display-config script, but it stopped working with latest changes in Mutter API. Here’s a short workaround until a better solution comes up:

Curating cron emails

As you might know, cron captures all the output of executed tasks and mails them to the user under which the tasks are executed. The problem is that often this mail just piles up somewhere in /var/mail directory, without being ever reviewed. It’s not a good practice, akin to sweeping the trash under the carpet.

Ansible filter list based on attributes

Suppose we want to find only users who have a middle name from this: users: - name: John surname: Johnson - name: Alice surname: Wonderland - name: Bob surname: Rabbit middlename: Bebop Old, verbose way would be: - debug: msg="" loop: "" when: item.middlename is defined This results in “s...