Coffee, adderall.
Also personally I've found if I go to bed early and get up really early and give myself several hours before I go off to work I do some of my best work.
^This. Go home, get some sleep in and start very early in the morning.
I don’t do all-nighters for work anymore. Go to bed at 5pm to 7pm the evening before, then get up at 2, 3, 4 in the morning as necessary and work then.
I once went to bed at 5pm, got up at midnight, worked at home for six plus hours, then went into work at 7am for a full day.