Using 2n2222 to switch relay on/off with 3.3v

Thanks. It's getting harder to find through-hole parts, so I need to stock up on these adapters.