melatonin supplements only go so far.
f.lux is indeed awesome.
4pm seems a bit late for me but he has a good point.
Also exercise helps a lot ! unfortunately, it also requires the most effort.
Cut out caffeine a minimum 6 hours before one sleeps. Fun factoid: caffeine's half life is around 6 hours, and by then one is pretty much over all of its effects.