Heat the oil in a wok. Add the onion, garlic, shrimp, salt and pepper and stir-fry until the onions are translucent. Mix in the cabbage and then add the eggs. Cook, stirring, until the eggs are set. Transfer to serving dish and garnish with scallions.