Bring vinegar, salt, sugar and water to a low boil and dissolve salt and sugar. Reduce heat to low.
Layer onions, cucumber, chilies, herbs and spices into a tight-fitting plastic or glass container.
Douse the pickles with the brine, cover container tightly and chill 24 hours or several days, turning occasionally.
Makes 1 pint of pickles