WordPress Shortcuts

Search & Replace the Base URL in a multi site setup

sed -i.bak "s/http:\/\/pfjournal.dev.infel.ch\//http:\/\/pfjournal.local\//g" pfj-20170112135105.sql

Locally import database in MAMP on Mac OS X

/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot postfinance < /Users/mario/Downloads/pfj-20170112135105.sql