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

Install:

sudo apt install ffmpeg

Lower the quality, for smaller files

Add for example -crf 26 to reduce the quality, where 23 is the default, 0 is lossless and 51 is worst quality.

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

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.

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 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:

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:

$PATH

Result:

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

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

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.