Physics at extreme energies: particle physics and astrophysics