Mix your greens and browns
The secret is roughly equal parts 'green' material (grass clippings, veg peelings, soft prunings) and 'brown' material (dry leaves, cardboard, paper, woody bits). The greens rot quickly and add nitrogen; the browns balance it, add carbon and keep the pile from going slimy.
