Punch them in the head.
Oh sorry, that was last century's method.
If you just don't get on with the other person then you just keep it professional, don't withdraw support and silently count down the hours and minutes till you can sign off and go home.
If there's an SOP drama then you as an FO have to use all the tact and character you have to keep it on course. If what the captain is doing is safe but not SOP then polite questions when appropriate is fine and it's possible to learn stuff. If the SOP deviation is dangerous then you must say something.
Imagine how you'd like to be spoken to. If you were doing something wrong would you want to be corrected by some one barking at you or gently asking a guided question? (Naturally, if lives are at stake, best do it quickly)