Disable all contrib modules in Drupal 8

If you for some odd reason should need to disable all contrib modules in Drupal 8 in a sweeping motion, you could do with Drush:

Start by getting a list of all modules, that…

  • are enabled
  • are not in core
  • get the machine name
  • and put it all in a file
$ drush pml|grep Enabled|grep -v Core|awk -F"[()]" '{print $2}' > modulelist.txt

Then we put a drush command ahead of every module name and put it in a new file

$ sed 's/^/drush pm-uninstall -y /' modulelist.txt > disablecontrib.sh

Make it executable, fire away and Robert’s your mothers brother.

$ chmod +x disablecontrib.sh; ./disablecontrib.sh

Not elegant but fast and effective.

Solving drifting mouse on Ubuntu 10.04 Lucid

After a while of repeated trouble with the combination USB-mouse and Synaptics touchpad on my old Dell Latitude laptop a solution was finally reached.
The problem manifested itself as either mouse cursor drifting towards top right or bottom left corner, or cursor just staying in either corner.

To solve enter…

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

…and make it permanent add last line to /etc/modprobe.d/options

HT