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:


With these commands, you can install a Solr server, create a Solr core and copy the configuration files from the Drupal search_api_solr module to your Solr core.

Scotch Box

Here are the commands to create a new Scotch Box 3.5 with Ubuntu 16.04 and PHP 7, which is the free version.

Redirect with Apache from root to path, while preserving query string

If you have a lot of pages indexed in search engines and decide to change a path in your web site, you probably want to redirect from the old URL to the new URL.

Bootswatch theme

With these commands you can quickly create a Bootstrap sub-theme with a Bootswatch.

You should be able to copy and paste them into your terminal, and create a fresh Bootswatch-based theme:

text selected Debian 9

Just create the file ~/.vimrc with the content set "mouse=":

Insert in ~/.vimrc:

vi ~/.vimrc
set mouse=

Make it take effect

source ~/.vimrc

You can now select text with the mouse in Debian 9.

Play It Slowly

With Play It Slowly you can change the speed of the music without changing the pitch.

To install, download and extract the tar.gz file from


cd playitslowly-1.5.1/

You should now have Play It Slow installed on your machine, enjoy!