How do you keep yourself entertained and awake when attending an extremely boring meeting?

Thinking why am I invited to this extremely boring meeting? Why did I accept the invite? Is it really the best use of my time?

And after it ends, I would take steps to never be in that situation (meeting) again.