I just about managed to shake my head.
I had almost succeeded in shaking my head.