Shock waves in Lifshitz-like spacetimes