In a wok, add oil and drop the garlic in cold oil. Fry it in medium heat. Once done, add green onion, fresh peppercorn and chili flakes. Stir for a minute or two. Add soy sauce, stir and add the cold cooked rice. Mix it nicely so that it coats every grain. Add salt as per taste. Fry for about 5 minutes, stirring occasionally. Check for salt and add any, if required.