For me, I recently got into drinking Yerba Mate (unsmoked, traditional way) and it's made me able to stay productive even in bad days.
Not really a technique, but something that worked for me.
EDIT: This is for when I'm feeling unproductive/down, not when I am feeling ill. The best thing for illness is rest and the right meds and nutrition.