Heat the oven (200°C). Take 2 pieces of aluminum foil (about 30 cm in length). Remove the cloves of garlic, cut the peppers in half and remove the seeds. Peel the shallots, cut them in half and place them on one half of both sheets of aluminum foil. Fill the pepper half with a twig of rosemary (or thyme) and the cloves of garlic. Place the filled pepper halves on top of the shallots. Pour the olive oil and sprinkle with salt and pepper. Fold the foil over the vegetables and roll up the sides. Make a few holes in the foil (at the top), place in the oven and cook for 30 minutes. Place on a plate leaving 1 corner open. The garlic is now soft and paste like and can be squeezed over the vegetables.