Stroke it behind the ear and onto the side of the jawline, then buy it some catnip. Oh, and expect it to try to kill you at a later date...cats are like that.
Just like any animal, give them what they need/want within your means, and they'll come around sooner or later. When they do, you can consider that as forgiveness.
Take some food and put it in your hand, tell him to come and get it, then pet him.
It'll pass. You've got the thumbs after all
take babysteps around him for a while so he sees you're making a conscious effort not to repeat your mistake.
Let him step on you.