Well I think that the most important part is knowing that a headshake is going to happen before it happens.
The only headshake of me in the video is the one in the dark where the camera is filming from behind me. The other guy is on an R6 and ironically he is in the same spot that mine happened in (just a couple of weeks later when I happened to be filming it.)
Anyway, if you watch me in the video, you can see me shove my weight all the way forward right before the wheel touches the ground. This was because I felt the wind blow me and I knew that no good was going to come of that wheely. I was already off balance because I'd been wheelying over a mile. All I do is let completely off of the throttle and fight it. Don't let the bars come out of your hands or your done. Unfortunately, my right leg came off of the peg in this one and I put a dent in my tank.
I also like to keep tension on the bars when I'm doing any "high stress" riding. It's kind of like a human steering damper. Whenever I'm taking a corner that changes in elevation, or I'm on the gas over something bumpy, I'm pushing outward on the bars. This helps a little bit until one can afford a damper.