We've all been there -- you're in the thick of a project, or maybe you've just spent hours toiling away on Reddit or Facebook, and you look up at the clock only to see that it's already 2 a.m., or even later. Damn it. Another night where you're going to get to sleep much later than you ever wanted to. You feel tired, but once you hit the bed all you can do is keep calculating how much sleep you'll get (or won't get) if you were to fall asleep this very instant, knowing very well that you're actually going to even less sleep than that. You wake up the next morning feeling groggy and sluggish, ruing "past you" who decided it was good idea to stay up that late. Vowing to never again let this happen, some hours later you look up at the clock and see that it's once again 2:30 a.m. and you haven't even thought about sleeping yet. Rinse, repeat.
If you're reading this, then you've surely gone through countless articles on how to improve your sleep, get more of it, fall asleep faster and the like. While I'm not going to rehash every tip you could ever come across, I will go over a few that I've found actually work.