One of mine is when I finish wrapping my hair up tightly in the towel to dry after washing, I whack the towel where it’s tucked in, kind of like encouragement to stay tucked for the duration, kinda like a coach does when sending the kids onto the playing field.
I do something similar. By whacking it (lol) my hand has enough momentum that the muscle twitch caused by the shock can’t overcome my hand’s movement, meaning it doesn’t jerk back uncomfortably.
I do similar with the screw on the cover plate for my light switch in my bedroom. I swipe it to discharge the static electricity.