Learning-Augmented Algorithms for Online Linear and Semidefinite Programming