In a food processor pulse shallot and garlic. Add herbs and pulse again to mince. Add lemon juice or vinegar, red pepper flakes, salt and pepper and pulse to combine. Add olive oil last. I like to drizzle the oil in slowly to create an emulsion, but you can also make chimichurri that is not emulsified, where the oil and herbs separate a bit.