Brian Tracy - Eat that frog!
Brian Tracy - No excuses!
if you prefer a tldr: Self discipline is the key. Identify your long term targets and do one thing at a time until it is finished. Work on what you need to finish even when you don't feel like working.
Concentrate on one thing and get it done. Break it down into chunks. Write them in a todo.txt. Get one chunk done and finished and committed before moving on to the next one.
For chunk size; I think a chunk is gonna take me 1-5 hours, and it usually ends up taking 0-5 days.
(2) Have a bug tracker, and create in it smaller subtasks for a task. It dumps thoughts out of your mind, which helps focus on individual subtasks.
In Israel everybody is allowed to get Ritalin.
Stay away from alcohol. It makes you sleepy and lass sharp.