Nicotine patches, I shit you not. Cut them up into 1/6’s or smaller and slap one on. The area will itch but it will be nigh impossible for you to sleep. Make sure you wash off the area when you’re done.
Add caffeine as needed, 7-11 caries Spike and they’re open all night. They carry some other energy drinks that I’m fond of but sipping on Spike is for when you absolutely positively have to not sleep, or just don’t want to. 150mg about every 4-6 hours works well for me, that’s half a can of Spike or ~1 can of something like Rockstar (I like the Lemonade or Pomegranate flavors).
Stay busy and stay on task, you may think you’ve got a buffer by committing to staying up all night but daylight seems to come awful early sometimes and you’re left realizing you haven’t gotten nearly enough shit done.
If you’re planning on 48 hours up you’re going to need at least a few hours of down time, set a reliable, loud alarm and take like 4-6 hours in the middle. Then get right back up and slam nicotine and caffeine.
Test out your tolerance of caff/nicotine, it’s a lot of nervous system stimulation and can leave you feeling kinda shitty if you take too much, make sure to just sip on your first energy drink you may need a lot less, I abuse caffeine like it’s a cheap hooker so my tolerance is pretty high.