Setup Raspberry Pi to use a static IP in Raspian Strech

Raspberry Pi by default uses dhcp, but like me if you are running a debian based OS in headless mode (without desktop) then is it preferable to have a static IP so that you do not have to look up your Pi’s address in your router administration.

This is quite easy to do if all the network interfaces have the common name like eth0 wlan0 etc…