Easy database reconfiguration for migration
Berdir wrote about a very nice solution some time ago, which also made it into Drupal 8 now.

It means that you keep separate settings.php's, which are included whenever available with a small code snippet.