A couple months ago I posted about my "straight" friend and how I had a crush on him not knowing if he felt the same. To update I still don't know if he does and to be honest I'm so sick of thinking about him when in reality he probably couldn't give a shit about me. Any advice to stop thinking about him 24/7?
Find something to keep you busy. Hobbies, a cause you care about...just something to do to help take your mind off things. It sounds like you are moving on a little bit just from the fact that you want to stop thinking about him. That's a good start.
Other than what Timetraveltea said if there are certain things that makes you think of him avoid them for time being. Video games especially the ones with high pace like FPS, Hack and Slash games or MMOs you have good friends with help you stop over thinking situations.