To start, soak rice noodles in warm water, for about 15 minutes or until they soften.
In a wok or large skillet, heat oil over medium heat and add minced garlic and diced tofu or shrimp for protein. Once cooked, push the ingredients to one side and crack an egg into the empty space. Scramble the egg and then mix it with the rest of the ingredients.
Then, add the tofu or shrimp and cook until they are cooked through.
Add the soaked rice noodles to the skillet along with the bean sprouts and green onions.
In a small bowl, mix together the tamarind paste, fish sauce, lime juice, red chili flakes, and palm sugar until well combined.
Pour this sauce over the noodles and stir-fry for an additional 2-3 minutes until everything is evenly coated.
Finally, sprinkle the chopped peanuts on top.
Serve hot and garnish with lime wedges and fresh cilantro.