Place the garlic and shallots in a small saucepan and cover with the olive oil. Place over low heat and slowly cook until they are soft and aromatic with no color. About 8-10 minutes. Remove from the heat and allow to cool.
Once cool, add the chopped herbs and chili flakes.