What are the ways to produce electricity with out using a generator?

rubbing youre socks on the carpet, solar panels, lightening rods thermal energy