Just learned about pkill. pkill allows to send signals to processes by specifiying the process name:
pkill -9 firefox
Here I am feeling dump that I used things like this for the last couple of years:
ps ax | grep firefox | awk '{print $2}' | xargs kill -9