Could be any number of things.
How are the plugs and wires?
Could be a crank sensor starting to go(had em at the shop where they didn't throw a code)
MAF
Fuel filter original?
Fuel pressure good?
Could be a connection in the ICM, or a coil pack starting to crap out.
Question is, how many parts do you want to throw at it before you either sell it, or take it to someone with the tools and knowledge to fix it? You could always do the fuel filter and tune up yourself and if that doesn't fix it consider taking it to a shop. They are both fairly cheap/easy, and are probably needed as far as matinence anyway. Maybe get some MAF cleaner and try that too...