It’s simple but difficult.
Shut off your phone and close all background noise. Music, podcasts, and that TV on the wall. All this stuff will keep you slightly distracted, but you also retain nearly zero information they’re sharing.
Focus on one hour at a time. You can’t eat an elephant in one bite. You can’t do 10 hours of work in one sitting. Sacrifice the day, one hour at a time, to accomplish your tasks.
That’s the secret to being productive.