Daniel Jalkut and Manton Reece just released a new episode of Core Intuition, and I loved what Manton Reece had to say on being productive:
Think about a feature you want to do and estimate in your head how long it’s going to take. Say realistically this feature is going to take 2 days to write. Then give yourself 2 hours to do the feature. See what happens.