elasticsearch | import eml or files from maildir

Install maildir-utils and use to parse the files and write a json. Use to eliminate bad characters who do not fit into your charset. Some (windows) mail clients (outlook?) put an CRLF at the end of to, cc, bcc or subject , so do something like an Elasticsearch will not accept json files encapsulated in […]

kvm | linux | shrink sparse disk using zerofree

Install zerofree edit your fstab, set your root drive to RO like /dev/vda1 / ext2 ro 0 1 Halt your system # halt -p Start your system into the grub menu, then select rescue mode, then drop to root shell Run zerofree like # zerofree /dev/vda1 Remount your root drive RW # mount -o remount,rw […]