1) Hard deadlines (those are usually what spurn me to actually get it done), 2) download a program like Cold Turkey or something similar (you can set it to block certain websites for a set amount of time), and 3) try to find some good instrumental productivity music (mine is Tchaikovsky ballet's, another friend always…