/spɪt ən ðə ˈwɪnd/
Acting in a futile manner.
“Trying to convince him felt like spitting in the wind.”