If you make your own fried shallots, you will need around 2 - 3 medium shallots for ½ cup (24g). You may want to use a recipe for more tips, but broadly you cut the shallots evenly thin but not paper thin, and prepare a baking sheet with a couple layers of kitchen paper, and a heatproof bowl with a strainer. Then place the shallots in a skillet/frying pan and add oil to almost cover. Heat to medium-high and cook, stirring with a chopstick to separate and move around the pieces of shallot. Cook until the shallots are lightly brown all over (you don't want them burning as they'll be bitter), then pour into a strainer to reserve the oil in the bowl and drain the shallots. Spread the shallots on the paper, pat dry gently and remove a layer of paper if it becomes soaked with oil. You can use some of the reserved oil to cook the pork, and also for any recipe where shallot-flavored oil would fit (so many recipes with onion).