Tutorial: Ragdolling and how to recover from it

How to make a character automatically rise after falling and coming to a complete stop, based on this tutorial?