Cold fronts and shocks formed by gas streams in galaxy clusters