Bay Area residents shared images on Twitter showing their preparations for the PG&E power outages and their photos reveal a story of epic lines and sold-out goods.

With grocery stores closing, many made last-minute trips to stock up on water and non-perishable foods, only to discover empty shelves.

"The state of the water supply at my local grocery store," wrote @TheFailStream in a Tweet with a photo of a barren shelf. "Luckily I was able to grab a few individual bottles."

"You know that it's End Times when there's a run on Spam in the #Oakland hills because of the looming power shutoff," chimed in @SovernNation.

Those looking to fill their cars with gas encountered long lines at the pump, and it was a similar scenario at ATMs that people flooded to take out cash.

One exasperated Twitter user shared an image of the line at a Chase bank ATM and wrote, "1 hour till #pgeshutoff. The line just kept growing...Hoping I have a solid plan for the next 2-7 DAYS... this is overwhelming. Wish my pets and I luck, gonna fight like heck to keep my reptiles warm through this #poweroutage."

PG&E finished the first phase of a power shut-off to mitigate wildfire risk at 4 a.m. Wednesday, leaving nearly 150,000 San Francisco Bay Area customers, and tens of thousands more around the state, in the dark.

In the Bay Area, the focus of the first phase was mainly on the North Bay. As of 5:30 a.m., Solano County had 31,632 customers without power, Napa County 32,780, Sonoma County 67,289 and Marin County 10,202, according to KTVU-TV.

Farther north, in Lake County 38,524 were impacted by the shut-off, and in Mendocino County 38,524. Throughout the state 513,000 customers were without power in the first round of shut-offs.

The second phase will start around noon Wednesday, and in the Bay Area shut-offs will occur in parts of Alameda, Contra Costa, San Mateo and Santa Clara counties.

The shut-off comes as dry and windy weather is forecast for the Bay Area, with gusts up to 50 mph Wednesday. The National Weather Service called the wildfire danger "extreme" and the event may bring the strongest offshore winds since the October 2017 North Bay fires.

The National Weather Service has a Red Flag Warning in effect for the North Bay mountains and valleys and the East Bay hills and valleys Wednesday 5 a.m. to Thursday 5 p.m.

A warning is also in place for the Santa Cruz Mountains Wednesday 5 p.m. to Thursday at noon.

FULL PG&E SHUTOFF COVERAGE:

- Map shows Bay Area neighborhoods that will be without power

- PG&E map down? Here's an interactive NorCal power shutoff map that actually works

- Essentials to buy for PG&E's planned power outage

- Here's what you should (and shouldn't) do during a power outage

- When will my power turn off?

- Cal, Bay Area schools announce canceled classes, closure

- UPDATE: 2 Bay Area tunnels expected to remain open

Amy Graff is a digital editor for SFGATE. Email her at [email protected]