In a big saucepan (stainless steel please) combine vinegar, 4 cups water and the salt. Bring just to a boil, stirring to dissolve the salt (and possibly sugar). Let it cool!
You can use this time to trim the beans or prep the garlic. Put a sprig of dill, a clove of garlic, 1-2 dried peppers and 1/2 - 1 tsp. red pepper flakes (if using) in each jar. Pack the beans in, upright. Ladle the vinegar mixture over the produce, seal and put in the fridge! Try them that night, or after just a few days.