Full Disk Encryption on Arch Linux: NVMe, GRUB2, LVM and LUKS

Last week I had to install my new work computer. Although I am a Debian guy, I thought I should give a chance to Arch Linux as well. In theory full disk encryption and Linux is not a big deal (there’s a lot of documentation out there) and it should be pretty straight forward. In practice, … Continue reading Full Disk Encryption on Arch Linux: NVMe, GRUB2, LVM and LUKS

Mutt: delete duplicate e-mail messages

Disclaimer: at some point I found this page describing how to delete duplicate e-mail messages with mutt. Unfortunately the page is not up anymore (HTTP 404) and I took the liberty to post it on my blog. Anyway, credit goes to Marianne Promberger. The original page was here: http://promberger.info/linux/2008/03/31/mutt-delete-duplicate-e-mail-messages/ Here we go: Sometimes, if you consolidate different … Continue reading Mutt: delete duplicate e-mail messages

Be notified when critical battery level is reached

Ever happened to be focused on something and miss the fact that your laptop is running out of battery? And to lose your work? Yesterday happened twice! “Really? Hmm… I need to fix this as soon as possible.” I googled a bit and this stackexchange post  popped up. Nice, great! But being notified even when you’re … Continue reading Be notified when critical battery level is reached

Marvel indices taking lot of space? Delete indices older than 7 days!

Is there a way to set marvel to delete the marvel indices after 7 days. It looks like Marvel is generating some data everyday. Is there a way to reduce the amount of data generated by marvel? The short answer to the above question is Yes! If we want to remove all indices from February … Continue reading Marvel indices taking lot of space? Delete indices older than 7 days!

nagios-nrpe-server: Ignores dont_blame_nrpe=1

We have Debian Wheezy running on all our production machines. Debian Jessie is out there for a while and I wanted to give it a try… An upgrade like this should be painless and without any major problems. I installed a machine with Debian Jessie and made it ready for production by playing some ansible … Continue reading nagios-nrpe-server: Ignores dont_blame_nrpe=1

Kill all mysql queries having query time greater than 1 minute

At this point there are two approaches to achieve this. One is using pt-kill from Percona Toolkit, and the other one is to use a bash script with a lot of pipes :) Why would someone use the second approach? I don’t know, perhaps because there is no Percona Toolkit available. If you can/want to … Continue reading Kill all mysql queries having query time greater than 1 minute

I can't memorize much, so I take notes!