I used to volunteer at a community farm that had a infamous gamebird rooster named Killer... For good reason, a tiny little thing in an aviary due to being able to fly, with other tiny hens. He was a wonderful caretaker of the hens and an attentive father, but HATED and DESPISED people and would attack on sight. Many volunteers were too scared to even go into his pen, while I wasn't allowed at first due to me being a minor at the time, didn't want me getting blinded by a crazed roo.
Well, one day the place was short staffed and so I decided to go in and sort out the food and water... He jumped down at me from his perch, like he does to all the others, but I snatched him out of the air, held him firmly, but was careful to not hurt him, and petted him, he squirmed and struggled at first before eventually giving in and letting me pet him, once he had mellowed out enough, I put him down and he scurried off... He never bothered me since after I humiliated him infront of the hens, and he avoided me when I entered the pen instead of attacking.
Even when I went in to play with the chicks the hens had, he'd just stare at me from a distance.
Also, when Peep-Peep, my Silkie cockerel I own came of age, he got a little feisty and ran up and pecked at my foot, likely trying to mount it. I picked him up right then and there and held him, giving him a light tap on the head. Once he calmed down, I put him back down.