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.

Install Docker

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

apache URL redirects work with curl

With curl you can check if redirects in your apache or .htaccess configuration works. You can add the options -I and -L for a better result, if there are multiple redirects. The option -I will get only the header of the page and option -L allows multiple redirects.

Sublime text no menu

I am not sure how it happens, but sometimes the menu disappears in Sublimetext.

Here is an easy way to restore it: