The actions alleged by some to reap rewards in a potential afterlife are generally those which reap rewards in this life.
Summarily: don't be a dick
With things like tapeworms, childhood cancer, etc., maybe God likes dicks. Or maybe he wants only the strongest to survive, so we should kill the weakest among us.