Menu Close

Author: Luca

Gitlab with Docker and Dokku

Gitlab is a fantastic git repository manager, it’s essentially github but with no limit on private repositories and most important, it’s absolutely open source.

You know, configure a new platform or service can often be a pain, but the good thing of docker is that with a single command we can have any service online in few seconds!

Move WordPress Site to Dokku Server

If you have a dedicated server and you have done all your testing with docker and dokku, you are ready to move all your sites on your new server.
Most common CMS is of course wordpress, so here I’ll explain how you can safely move a hosted wordpress site to a docker container with dokku.
(PS: This tutorial supposes that you have a base knowledge about docker and dokku).

N.B: I wrote this tutorial with specific idea of how wordpress should be installed in a container.
If you search with google something like “docker wordpress” you will found lots of resources and “dockerfile ready” container with all in one (wordpress + mysql).

For me it’s very important that wordpress and mysql stay on different containers (and dokku helps us with this).
Also important data of wordpress should stay in a safe place, because keep wp-content directory inside the container expose it to the risk of loss important files if you delete the container or something goes wrong with your dokku/docker installation.

Let’s start!

Find hidden content in mounted directories

You have a VPS or a server where you mounted some folders from a NAS / SAN, where for example you syncronize content or backup critical files.

Sometimes, the mount can be lost for various problems like bad network or a restart of the NAS.

What happen if the NAS go down and your server/VPS tries to backup files to mounted directory? Easy, it copies them to LOCAL folder where you think that is mounted NAS folders.

The problem is that you’ll NEVER see that content, and your disk space is obviously reduced and you don’t understand why.

Is there a way to view and delete this hidden content? YES!

How To Install and Setup Spamassassin on Ubuntu 12.04

by DigitalOcean

About Spamassassin

Spamassassin is a free and open-source mail filter written in Perl that is used to identify spam using a wide range of heuristic tests on mail headers and body text. It will save your mailbox from much unwanted spam emails.


Before installing Spamassassin, you need to install and setup a mail transfer agent such as Postfix on your virtual private server.

You can find instructions on that here

How to set filters in roundcube with Sieve

Ok, You have your fantastic mail server with roundcube as web client.

All work great but hey, wait a moment… how can i set a filter in roundcube?

Filtering emails in webclient (gmail, outlook etc) its a normal thing but in your mail server it’s not automatic, and you have to do a bit of work for have it in your roundcube.

This is a quick tutorial on how to configure all on Ubuntu 12.04 with postfix+dovecot+roundcube (I assume that you already installed them).

Let’s start:

How To Add and Delete Users on an Ubuntu 14.04 VPS



One of the most basic tasks to that you should know how to do on a fresh Linux server is add and remove users. When you create a new server, you are only given the root account by default.

While this gives you a lot of power and flexibility, it is also dangerous and can be destructive. It is almost always a better idea to add an additional, unprivileged user to do common tasks. You also should create additional accounts for any other users you may have on your system. Each user should have a different account.

You can still acquire administrator privileges when you need them through a mechanism called sudo. In this guide we will cover how to create user accounts, assign sudo privileges, and delete users.

View Live current mysql queries

For see from command line current execution of queries you can use:

$ mysqladmin -u bob -p -i 1 processlist

This will print the current queries on your screen every second.

  • -u The mysql user you want to execute the command as
  • -p Prompt for your password (so you don’t have to save it in a file or have the command appear in your command history)
  • i The interval in seconds.

If you want to see output like “SHOW FULL PROCESSLIST” you can attach “–verbose” to the command.