Step 1Drain the olives and put them in a mixing bowl.
Step 2Toast the chiles and cumin seeds in a small dry skillet over medium heat until fragrant and beginning to color, about 3 minutes. If using whole chiles, add them to the olives; crush the cumin seeds in a spice grinder and add to the olives. If using red pepper flakes, grind them with the cumin seeds and add to the olives.
Step 3Add the garlic, thyme, oregano, olive oil and vinegar and mix well. The olives will be good immediately but will improve in a couple of days.