Cut pork ribs into bite-sized pieces.
Slice onion and green onion into appropriate sizes.
Mix soy sauce, sugar, minced garlic, pepper, and sesame oil to make the sauce.
Heat cooking oil in a pan and stir-fry the pork.
When the pork is half-cooked, add onion and green onion and stir-fry together.
Add the sauce and stir-fry over high heat until evenly coated.
When the pork is cooked through and the sauce thickens, it's ready to serve.