Friday, January 10, 2020

Watch file/folder for change and trigger an action

My use-case is that I have an upload folder which I'd like to reindex when something is uploaded/deleted. For this I watch the file size with du command.
It should be triggered via cron or systemd timer.

Friday, December 27, 2019

Boot Archlinux CD iso from local disk with GRUB

I use btrfs snapshots to backup my system. In order to restore to previous snapshot I had to boot live CD and do the restore. But as live CD is not always at hand, it's better to have an ISO stored locally on your disk and boot directly from it.
I use GRUB2 and archlinux, for which I've created the configuration.

Friday, December 7, 2018

Install Archlinux on LUKS encrypted BTRFS filesystem with subvolumes

In this post I will go through the system installation. Second post will be about btrfs snapshots, namely how to create and restore snapshot.

ArchLinux installation is very well documented on Archlinux Wiki. My tutorial basically follows all the necessary steps from the wiki page with some additional configuration to achieve:
  • LUKS encryption (this will be applied to all partitions except /boot)
  • btrfs formatted filesystem, with use of subvolumes with flat layout


Thursday, December 6, 2018

VirtualBox: shrink Clonezilla disk image

I've spent some time until I finally found out how you can not only increase the disk image but also how to shrink it.

Use case:
I had an disk backup created with clonezilla. The source disk size was 1TB and the restore disk size was 256GB. The actual data amount was around 120GB, so it would definitely fit on the smaller disk.
But with clonezilla, I wasn't able to restore it.

Friday, March 23, 2018

Bash Functions

This post contains few functions, or tips I often use, so I keep them close.


Elasticsearch: setting up watcher for FS monitoring

In this post, we'll go through components used for this case scenario and the process of setting up a watcher within elasticsearch.

Our case scenario: we have three machines running different OS (all are linux based) and we'd like to be notified when we're running low on disk space. For this we've taken advantage of running elasticsearch instance with Gold license and enabled watcher feature.


Wednesday, November 15, 2017

SF OS X

Android. That's the operating system which most probably runs on your mobile phone.
While this is the very common system to have nowadays, it's matured enough throughout the years and built very rich ecosystem of applications, there are a few things which I don't like on it.

The basic idea is, that if you buy something, you should own it. You should be able to disassemble it and modify it, to adjust it to your needs and most noticeably: you should be in full control of your device.