Alex Cobb dominated on the mound and the Giants got a few timely hits in a bounce-back win over the Orioles.