Backup emailaccounts with Zimbra zmmailbox

The following code makes it possible to loop through email addresses saved in the file /home/maarten/emailaccounts.txt. #!/bin/bash for i in $(cat /home/maarten/emailaccounts.txt); do zmmailbox -z -m $i getRestURL “//?fmt=tgz” > /backup/$i.$(date +%d-%m-%Y).tgz done For now the addresses have to be added manually to the file emailaccounts.txt, but with the zmprov command it’s possible to generate […]

Disable WordPress Twemoji and Emoji scripts

Add the following two lines in your functions.php file. function remove_emoji_scripts() { // Dequeue the Emoji script wp_dequeue_script( ’emoji’ ); // Dequeue the Twemoji script wp_dequeue_script( ‘twemoji’ ); } add_action( ‘wp_enqueue_scripts’, ‘remove_emoji_scripts’ );

Build nginx from source

I use nginx as a webserver for my websites. When installed from aptitude, it comes with a lot of modules that I do not need, so I made a customized version of nginx, to make nginx the way I want it. First, you have to download the latest version of nginx from the website. Version […]