Stop iTunes from opening when a device is plugged in?
Under System Preferences → Users → [you] → Login Items → select iTunesHelper, then click the minus sign and log out/into your Mac.

No devices will cause iTunes to launch (that's the whole purpose of iTunesHelper).