Start car and dashboard lights come off then everything turns off?

To begin, my car wouldn't start about 3 weeks ago so I had a friend jumpstart me. I was worried it was the battery so I got someone at Advanced Auto-parts to give me one of those free battery readings. It got a "good" rating, I don't know if maybe it wasn't totally accurate or not. But last night I drove it to a friends house and back. I went into my house for about an hour and came back out to start it up again. The dashboard lights turned on for about a second then everything turned completely off. Then I tried to start it back up again and everything is black. I waited another hour to restart it and when I did the cigarette light came on for second but not the dashboard lights. What could this be? It is a honda civic 2003 with 130k on it. The only problem I've had with the car is a blown head gasket that I've had for awhile. Other than that it's been fine up until this point.

I would look at the battery or the battery cables. If they are corroded, it can cause weird electrical issues