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.

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

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.

In this example, the web site search was previously at the root of the web site, with a parameter s, like this: http://example.com/?s=, the new search path is now at the path /s (same parameter) like this: http://example.com/s?s=.

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:

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.

From: https://unix.stackexchange.com/questions/318824/vim-cutpaste-not-working-in-stretch-debian-9/387776#387776

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 https://29a.ch/playitslowly/

Then

cd playitslowly-1.5.1/
bash install.sh

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

Create, drop and import a MySQL database using Drush for Drupal:

# Drop, create and import database, assumes database located one level up
drush sql-query "drop database DB_NAME_NEW;"
drush sql-query "create database DB_NAME_NEW;"
mysql -u root -proot DB_NAME_NEW < ../DB_NAME.sql

Sometimes it's nice to get an alert when your terminal has finished a task.

You need to have sox installed to play a sound with the "play" command:

sudo apt-get install sox

Add this to your ~/.bashrc file (remember to also source it) to play a sound and show the text "Ready" at the top of your screen:

I you are tired of new bookmarks in Firefox 58 going in the "Other Bookmarks" folder, you can change it with the Default Bookmark Folder add-on.

Also, If you want to remove "Other Bookmarks" from the dropdown shown after ALT+B, you can add this to your .mozilla/firefox/PROFILE_ID.default/chrome/userChrome.css file:

If your Ubuntu installation locks up as the graphical boot screen attempts to initialize, and you can't get access to your system after starting it up, booting into a previous version can be a help.

This can happen after updating to the the latest update to Linux 4.4.0-108 kernel, which included a fix for the Meltdown vulnerability.

You should be able get back into Ubuntu again by going back to the previous working kernel version from GRUB, in this case 4.4.0-104-generic: