a small pair of vise grips works great, get a cheap pair from somewhere an throw them in the glove box. When you need to spend time under the hood just clamp it on to one of the gas shock's rod and bam no more hood falling on your head.
this works for me anyway lol.