A life hack I found useful: if I need to remember a few numbers for a few minutes before I can write them down, I keep quietly repeating them in my mind. It works much better for me than trying to memorize them since I think it uses auditory memory; after a few repetitions the sequence of words becomes automatic and easy to repeat without thinking.