At one point I stopped trying to fight the insomnia, instead just trying to stay up as long as possible. I didn't have a job at the time.
After a few days of practically no sleep but all conscious activity, I'd be playing video games or reading or whatever, I fell into a deep sleep for like 12-14 hours, and when I woke up, I felt refreshed like I'd never felt before, and my depression, well it was gone.
I believe that, just as sleep clears out some brain cruft, not sleeping can perform an inverse service that's almost as vital. The focus on "getting enough sleep" as some kind of religious mantra is keeping us from doing that.