One night years ago, I was riding with two buddies on a country road. We're flying down hill single file, I'm bringing up the rear. The first guy passes a farm lane and a German Shepard comes flying out to attack but it was my friend riding in second place who became the potential victim. I yelled at the top of my lungs and it scared the hell out of the dog. I guess it didn't expect a screaming third rider, because it took one look at me and tucked its tail and ran.
The funny thing is I yelled because the dog scared the hell out of me, and my yelling turned out to scare the hell out of the dog.