Wash the shrimp thoroughly and pat dry.
Beat the eggs in a bowl.
Finely chop the green onion and onion.
Heat cooking oil in a pan and sauté green onion to make scallion oil.
Add onion and shrimp, and stir-fry.
When the shrimp is cooked, add rice and stir-fry while mixing.
Pour the beaten eggs around the edge of the pan, cook them like scrambled eggs, and then mix with the rice.
Season with soy sauce, salt, and pepper.
Quickly stir-fry to finish.