Corresponding Entity References

"CER keeps reference fields in sync. If you have two entities that refer to each other using Entity Reference (or some other kind of reference field), it saves you the trouble of double-editing your entities in order to have them point at each other. If entity Alice references entity Bob, CER will make Bob reference Alice, and keep the references up-to-date when either entity is updated or deleted."

Drupal set module weight

In Drupal, each module has something called weight. The weight, which is stored as an integer, determines when the module's code gets run. Sometimes, you want to alter something that another module does. In order to override another module, your module has to have a higher weight. There is nothing in the UI that lets you change a module's weight. You can set the weight by changing the value in the 'system' database column. To automate this,

Git who changed a line

How to find out when a certain phrase was added to a file in GIT

# this will show what commit it was added, who added it, when it was added, and print out a diff:
git log -S"important phrase" -p -- <file>