Subspace arrangements, configurations of linear spaces and the quadrics containing them