Heat 1 tablespoon of oil in a large skillet or wok over medium-high heat. Add the beaten eggs and stir gently for 1–2 minutes into soft, glossy curds. Slide onto a plate.
Add the remaining oil and heat until shimmering. Add the cold rice in an even layer, press lightly, and fry undisturbed for 2 minutes. Toss and fry 2 more minutes, breaking up clumps, until the grains are separate with golden edges.
Stir in the onion and frozen peas and carrots; cook 2–3 minutes until the onion softens and the vegetables are hot. Add the garlic and cook 30 seconds.
Pour the soy sauce around the hot edges of the pan, add the black pepper and red pepper flakes, and toss for about 1 minute.
Fold the eggs back through, breaking them into ribbons. Taste, adjust the soy sauce, and serve hot with green onions if using.