THC helps to slow everything down a bit so you can clear the fog and focus one a singular thing. The caffeine to keep that edge going.
Also extremely conducive even if you're not a fan of this genre of music but game/trailer sound tracks like: https://www.youtube.com/watch?v=z1P5U7NlVoA
Music with lyrics or jazzy makes you need to focus on the music.
Alternative is this incredible little gem of youtube:https://www.youtube.com/watch?v=iD4dMdpNe_I incoherent background noise.
However, as few have said, bottomline is you can't circumvent sleep deprivation. Best you can do for yourself is take a power nap but even with sleep, because of the crap happening. I still recommendation the above suggestion.
I had a similar problem: I couldn't sleep longer than 2 - 3 hours without waking up randomly. Now I'm taking a medicine every day and it's helping me regulate my life. Trust the science. Use the technology to have a happy plain life.
But really fixing the wider problem is best. The usual answer is exercises, sunlight and avoiding screens for a hour or so before bed.
Amphetamines (adderall/vyvanse/amfexa etc): these will easily clear the fog from lack of sleep, the downside being theyre expensive
Modafinil: this chemical was developed for narcolepsy but was soon found to be useful for cognitive enhancement, itll keep you going up to 48 hours with almost no loss of focus or ability and in some cases youll even be better. the other up side to this is that Modafinil is very cheap
That isn't true. Sleep deprivation will significantly impact your cognitive abilities even so, perhaps just not as much as it otherwise would.
Quality sleep on a regular basis is the foundation for anything sustainable, regardless of drugs.
and addictive and often neurotoxic..