8GB for RAM (I think by now everyone is in agreement on that)
i5 (sandy bridge or newer) for the CPU. Yes, there are cases where an AMD FX8 processors are decent, but there are quite a few cases where they're being outperformed by a dual core Intel, and sometimes by a substantial margin. An i5 performs great at everything all the time, and it will do it now and into the future. You don't have to develop false hope that a future technology that will somehow make your processor perform in ways it hasn't before.
I see it all the time on here with AMD CPU recommendations, there's always a claim of a future tech that's going to perform magic. I've been hearing it for about a decade now, it's always a different technology and it always comes and goes without performing the miracles pinned on them.
If you're feeling masochistic, go with AMD. If you want something that will perform well at everything all the time until it becomes obsolete, don't.