Note: This dish is usually served with traditional meat accompaniments or with meat in the dish; so the meat and cabbage to go in is optional.
Stir the rice with a fork to separate the grains.
Pour a small amount of oil in a wok and fry the egg to make a thin omelet; cool, then shred.
Heat the remaining oil in the wok and fry the shallots, garlic, chilies and shrimp paste until the shallots are tender (if adding any meat or shredded cabbage to this dish, add now and cook until meat is cooked through).
Increase the heat to high and add the rice, salt and soy sauce, adding a little oil if necessary, stirring constantly until well mixed and heated through.
Garnish with shredded egg, cucumber, and tomato.
Serve with fried egg, fried chicken, satay, and shrimp crackers, (in the traditional style), if desired.