A bash script to easily generate a link for Github to create a new release with a new tag on the main branch.
Generate github compare link
A bash script to easily generate a compare link for Github between current and previous branch
drupal_is_front_page and drush / cron
During drush and cron drupal_is_front_page always returns TRUE
which kind of makes sense.
Hide default address book in Thunderbird
If you’re using an external address book in Thunderbird, all contact actions are still done on the default build-in address book, and there’s no option to mark another address book as being the default one.
Migrate postgres to mysql
Migrate postgres database to mysql/mariadb
Reset file permissions
From time to time (for instance when using docker) your file permissions might be changed, but you don’t want to commit those changes to your repository.
Ubuntu 17 hibernate
By default Ubuntu 17.10 has hibernate disabled since most of the time it does not really work.
I followed the instructions at How to enable hibernate and it works for me
Styling radio buttons
Styling radio button labels based on the state and disabled without the need for class name or id.
Export base field and instance for use in Drupal 7 install
The following snippet used inside devel/php to export field base and instance settings.
It exports the base field definition, adds a wrapper to make sure the field does not yet exist.
It also exports the field instance settings, even allowing to select extra bundles to add the field to.
Add toggle for Drupal exposed views filters
The following snippet can be added into your theme javascript file and it will add a toggle option around views exposed filters,
so you save some screen estate.