ensure not to cook the garlic on high heat or else it will cause garlic to get a burnt flavor. turn off the heat and add the italian seasoning, dry parsley, chili flakes to the oil. stir so that all is mixed well. pour the garlic and herb infused oil along with salt and pepper over the cooked spaghetti.