The literal act of beating, shaking, or otherwise agitating socks or other garments in order to remove dust, dirt, or lint.
2.
unspecifiedinformalrare
A colloquial or dated formation meaning an action that astonishes or greatly impresses someone; a rare figurative usage analogous to 'astonishing' or 'knocking someone's socks off'.