Wash the beef and place in a pressure cooker with a liter of water, if desired add more for soup. Add a tablespoon of salt and crack the two pieces of star anise. Boil for about 30 minutes or more, depending on the tenderness desired. As soon as done, drain the meat and set aside. Heat a tablespoon of cooking oil and saute the garlic first and set aside some for toppings for the fried rice. Add ginger and sliced onions. Add the beef and add ground black pepper to taste. Saute for three minutes more. Add the beef cubes, a cup of beef stock and half a cup of soy sauce. Simmer some more and add the sugar. Stir once in a while and simmer until the sauce gets a bit thick. Adjust the sweetness and saltiness according to taste.