(1) Exercise everyday
(2) Try to get enough sleep
(3) Make a very conscious effort to get out of your comfort zone and try unfamiliar things, even if you only try them briefly.
(4) Understand and accept that sometimes it takes years before a project gives any substantial results, so don't get discouraged if a project seems impossibly hard and going nowhere at first.