This little poem comes from Disticha de Educatione of Urbano Appendini, published in 1834; you can see the whole book at Google Books.
Teque Deumque omni studeas cognoscere cura;
Ignores quamvis cetera, doctus eris.
The vocabulary is keyed to the DCC Latin Vocabulary list. There is only one word in this poem that is not on the DCC list:
ignōro, āre - to not know, ignore, be ignorant
cēterus -a -um: the others, the rest
cōgnōsco -ere -gnōvī -gnitum: learn, understand
cūro -āre: care for (+ acc.)
deus -ī m.; dea -ae f. god; goddess
doceo -ēre -uī doctum: teach
omnis -e: all, every, as a whole
quamvīs: however you like; although
que: and (enclitic)
studeo -ēre -uī: be eager, be zealous, care for (+ dat.)
tū tuī tibi tē: you (sing.)