My friend Charlie is back....

https://slrpnk.net/post/35738966

This fixes it instantly every time for me. Ignore everybody else. When you get that cramp start moving our foot in the opposite direction pointing your toes towards your knees and stretch out the back of your ankle. Instant cramp relief everytime.

If you have cramping often like this then maybe dedicate yourself to some hamstring stretches.

I once tried it and got a second more agonising cramp

I find this happens to me if I panic and do the stretch too quickly. But if I do it at fast but measured pace it works every time.

My dad told be the trick at a time when I was getting night cramps often and it changed my life

It could be that. I did it very slowly so idk, at least I woke up