Heat oil and lightly brown the garlic. Add onions and stir-fry until golden. Add shrimp and fish sauce and heat through. Stir in the rice and toss until everything is well mixed. Add ketchup and stir well. Remove to a platter. Garnish with onions and cilantro.