When Rosh Hashanah falls on Thursday and Friday, an eruv tavshilin is set on Wednesday so that one may cook from Yom Tov to Shabbat. One who forgot may often rely on the rav of the city. As the Chida wrote, it was the custom to go from house to house in Yerushalayim to make the mitzvah available.