Peel and chop the garlic. Chop the parsley too. Fry both in a pan with hot olive oil over medium heat (the garlic must not turn brown). Add the pepperoni and pesto. Cook the spagetti until al dente and drain. Remove the hot peppers from the sauce. Put the spaghetti in the pan and mix well with the sauce. Serve on plates and sprinkle the parmesan on top.