Whisk together tamarind paste, fish sauce, palm sugar, and soy sauce until sugar dissolves. Set aside.
Soak dried rice noodles in room-temperature water for 20 to 30 minutes until pliable but still slightly firm. Drain well.
Heat wok over high heat for 90 seconds until very hot. Add 1 tablespoon oil, then cook protein until done (chicken to 74°C / 165°F internal; shrimp until pink and curled). Remove and set aside.
Add remaining oil to wok. Add garlic and shallots, stir-fry for 30 seconds until fragrant.
Add drained noodles and toss constantly for 60 to 90 seconds.
Pour in the sauce and toss to coat every noodle strand. Cook 60 to 90 seconds until sauce is absorbed and noodles look glossy.
Push everything to one side. Crack eggs into the cleared space, let whites set for 20 seconds, scramble lightly, then fold through the noodles.
Return cooked protein to wok. Add spring onion pieces and half the bean sprouts. Toss 30 seconds over high heat.
Plate and top with crushed peanuts, remaining fresh bean sprouts, lime wedges, and chili flakes on the side.