If you have switched graphic card driver from Nvidia to Nouveau in Ubuntu, you might get this message after boot, where it just hangs:

ffmpeg resizing

You can reduce the size of a video by reducing the resolution with the ffmpeg program.


sudo apt install ffmpeg


ffmpeg -i original-title.mp4 -r 30 -s 640*360 result-title.mp4

Explanation of -r and -s options:

Snap list

Snap is a new experiment in Ubuntu 18.04, which makes the File System useless, as well as other annoyances like creating a folder in /home/username/Snap.

To uninstall Snap and reinstall the packages the normal way:

sudo apt purge snapd
sudo apt-get update
sudo apt-get install gnome-calculator gnome-characters gnome-logs gnome-system-monitor
VLC as default MP3 player

If you have tried everything, but can't set VLC as default application for MP3's, last resort is to manually update ~/.config/mimeapps.list.

Settings files for Sublimetext, previous next tab and look

Setting files for Sublimetext are in this folder in Ubuntu: ~/.config/sublime-text-3/Packages/User

General settings
Insert this in ~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings to change the skin, font size, tab size, convert tabs to spaces, etc. You might have to install the Solarized Color Scheme as a Package first:

Lando and Docker

Lando is a Docker based development tool, which is much faster than Vagrant-based tools, since processes are run in containers directly on the host machine.

The requirements on the host machine. Note that a database is not required:

ScotchBox Composer Drupal 8

Setting up ScotchBox 3.5 (Ubuntu 16.04) for Drupal 8 using the official Composer template.


With the CiviCRM command line tool cv you can run cron jobs and perform other related tasks from the terminal.

To install cv without sudo access, for example on shared hosting, you can install cv. First, you need to find (in this case in Scotch Box / Vagrant) the available environment paths with:



virtual host in Scotch Box

Sometimes you want to host multiple sites in a single virtual Scotch Box public_html folder, or any other Vagrant+VirtualBox setup.

Devel mail debugging

A simple way of debugging email with drush in Drupal 7 using Devel module in a few steps:

Download and install the Devel module:

drush dl devel && drush en devel -y

Add this code to settings.php:

$conf['mail_system'] = array(
  'default-system' => 'DevelMailLog',

Flush the site cache:

drush cc all