Just a single thing - project goals.
Nothing gets me more productive than knowing there is a specific goal that I can put my focus into.
Getting these goals involves clearing up requirements, validating assumptions, removing unknowns, and just basically paving a clear way to your goal.
It doesn't matter whether it's noisy or I'm sleepy or tired - as long as there's a clear goal, I'm productive.