The San Mateo County Transit District — better known as SamTrans — will be offering free rides on New Year’s Eve and in the early morning hours of New Year’s Day, the agency announced.