For pilling, I advise this: use a dot of something soft and wet s/he likes. You can try mayonnaise, yogurt, even a little soft butter or cream cheese. Just a drop will do. Make sure you have everything ready, in a bowl is good. Pill, and spoon with a little mayonnaise (or whatever)
Use the holding position. Kneel on the floor with your feet crossed behind you, hold kitty between your knees facing out. S/he will try to back away and will not be able to.
With cat in holding position (as described above), put a dot of the mayo (or whatever) on kitty's mouth to keep her busy and to get the saliva flowing (so the pill doesn't stick).
While kitty is licking her mouth, hold pill in one hand, pry open mouth with other, poke pill in, toward side of mouth and as far back as you can.
You can let go of her mouth at this point, but keep a hand on her to keep her still while you get another bit of yogurt (or mayo or...) on your finger and put a dot on her nose and mouth. She will lick off the yogurt and swallow, pill and all.
this can work with liquids too.
I make it sound easier than it is, at first. It does take practice. And you have to approach it with confidence, kitty will sense if you are hesitant. But once you master this method you'll be able to pill any cat, any time. I know I can!

PS if Petey does not eventually accept the pilling (though most cats do in time, especially with this method) the medication can be made into a transdermal gel that is rubbed into the upper ear.