Archive for category Common

How to replace a string in multiple files in linux command line?

Sometimes there are surprises even for long-time developers and linux users. One of these is the commandline tool rpl: , see

You don’t have to struggle with tools like sed in combination with find or grep. Just use a single tool! For example:

rpl -v foo bar '**/*.txt'

It replaces “foo” with “bar” in all .txt files recursively.


Leave a comment

How to check, if there is an update for mailcow

Let us assume that mailcow (dockerized) is installed in the directory /opt/mailcow-dockerized, then the script below checks, if there is an update and sends an email to the hostmaster:

set -o nounset
set -o errexit

cd /opt/mailcow-dockerized && ./ --check > /dev/null

[ $exit_code -eq 0 ] && echo -e "Subject:MAILCOW: Update available \n\n Update your mailcow instance please!\n" | sendmail
exit 0

The scrip can be run as cron.

Leave a comment

How to update Lollipop (Android 5.0) on a rooted nexus device

On a rooted nexus device with Lollipop (Android 5.0) the common OTA-updates fails. The reason is: there are some additional security checks while the OTA-update, which fails on rooted devices.

But if you know how to handle the adb-tools, it’s easy to make a manually update. Just download the matching  factory image for your android device and extract the following files: boot.img, recovery.img and system.img.

adb reboot bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot format cache
fastboot reboot

That’s it! All your private files won’t be deleted.

I’ve tested it with my nexus 10 and I couldn’t guarantee that this is true for other devices.


Leave a comment

C5Connector.Java Version 0.7

Version 0.7 of the C5Connector.Java has been released.

It’s the Java backend for the filemanager of corefive.

It’s a  feature and clean-up release:

  • internal: global refactoring, refactored the upload code
  • issue #25: Implementation of the mode ‘preview’
  • issue #26: introduce a property to hold the max. preview dimension
  • issue #28: introduce a remover for EXIF data
  • issue #29: extend the shared-config with option#theme

For more details refer the changelog please.


Leave a comment

Poor Man’s CMS 2.4RC1 released

In this release the backend has changed dramatically. The data store has changed from a database to plain xml files. This is increasing the speed enormously.

The ftp password is now stored encrypted in the backup file. That’s why you have to set your password again. You will get a corresponding hint. It is essential to make a clean installation, the data directory must be removed!!!

I don’t have the time to concentrate on testing on different platforms. That’s the reason why I’ll deploy only release candidates from now on.
If you find bugs don’t hesitate to file a ticket here or leave a comment in the forum.

The changes in detail:


  • the location settings and composition of the HeapSizeDialog is wrong

features and improvements:

  • ftp-password is encrypted in the backup and data xml
  • feature #44 big refactoring: use XML file per site instead of database, more use of spring pattern
  • integrated jii


  • updated commons-net to 2.2
  • updated velocity to 1.7
  • updated spring to 3.0.5
  • updated swt to 3.7 and dependent libs

, , ,

Leave a comment