Spatiotemporal pulse shaping for laser-plasma-based applications