Gauss's law for lines, planes and uneven charge

A cylinder round a long line of charge and a pillbox through a charged sheet make the field perpendicular or parallel to every face, giving a field falling as 1 over r for the line and constant for the sheet, and a nonuniform density is integrated to find the charge enclosed.

From AP Physics C: Electricity and Magnetism.