When installing packages using npm install --global
, you need to have sudo
rights.
To avoid this you can move this directory inside your home directory and avoid the use of sudo
while installing packages.
Ubuntu 17.10 Alt-tab same workspace
By default Ubuntu 17.10 alt-tabbing works across all workspaces, to change this
run the following command in a terminal (CTRL-ALT-T)
Search command line history using arrow up/down
Adds support for using arrow up/down to quickly scroll through the command line history
Easy chat integration for Drupal 7
If you want to easily send messages to a chat service, all you need is a webhook configured on that service and the following code.
Create image styles in bulk for Drupal 7
Since we use responsive images a lot in Drupal, we use the following to create image styles in bulk.
Enumerate used font families and sizes
List all font families and sizes used on a page.
High precision currency in drupal 7 commerce
In Drupal Commerce you can run into rounding errors when only using 2 significant digits, the easiest solution is to inform commerce to work with 4 significant digits
Create a local git repository
Follow these steps to get started with a local git repository.
Undo last commit
Ever made a change, but you forgot something
Restore to local
Restore Drupal database on local machine using drush.