Generic initial ideals of points and curves