mysqldump with where clause in a bash script

So, this has been an interesting one to work out with a bunch of trial and error. The mysqldump command has a very useful –where option that allows you to only dump out specific rows that match your where clause. Say you want to mysqldump all rows where...

Auto Sync AWS AMIs to another region with Lambda

If you’re using AWS for a critical application then you probably have a disaster recovery region setup.   If it’s automated well, then everything you need to spin up the disaster recovery region should be quick and easy.   One thing that can be a bit of a...

Join Ubuntu 16.04 into Active Directory Domain

There are quite a few guides lying around the internet for getting Ubuntu 16.04 working with Active Directory. I followed a few of them, and always ended up with problems. Can su – to the user, but can’t ssh. Can su – to the user and ssh as the user,...