Unzip all bz2 files

The backup program storeBackup saves some files in the bz2 format. The following command makes such folders usable.

Piwik Upgrade

It is not possible to upgrade an old instance of piwik to the latest version in one step.

I took the following steps:
– 0.9 -> 1.0
– 1.0 -> 2.0
– 2.0 -> 2.14
– 2.14 -> 2.17
– 2.17 -> 3.0

Everytime all files except for config/config.ini need to be deleted.

Solr setup full-text search in 5 minutes

  1. Download the latest version of solr (Solr 6.5.1)
  2. Unpack it and go into the bin directory
  3. Start it up by executing:
  4. Initialize the configuration by executing:
  5. Index your files by executing:
  6. Open the web browser and start Searching

At this point it is basically already working.

I prefer to do some more optimizations:

  1. Open server/solr/files/conf/velocity/head.vm and remove the css .result-document:hover. This gets rid of the annoying zoom effect when hovering search results
  2. Open server/solr/files/conf/velocity/hit.vm and replace

    with

    This adds a link for each result to directly open the file. (as the link is local, you need to install the firefox extension local_filesystem_links).

Convert EML to PDF

On git hub a project can be found that does exactly that: eml-to-pdf-convertere.

The program can be used as follows:

Dealing with PST under linux

I prefer dealing with outlook archives (pst-files) by extracting the messages to a folder structure, saving each message as eml-file (Thunderbird mail-format). This can be achieved as follows:

If the command cannot be found, you might need to install the package libpst first. The command creates msg and eml files with a increasing number as the filename.

Then you can go into the different folders and execute the script eml_renamer.pl. It renames each eml file with the date and subject in the filename. When I used it it did sometimes throw the following error:

for that reason I updated the original script to be able to see the filename that cause the issue (it were in fact mails without date information) and to remove them. You find the updated script here: eml_renamer.pl

If you have issues running the script, you might need to install the following packages: perl-File-Slurp, perl-File-Next and perl-DateTime-Format-Flexible

Source