[verb (dictionary form)] + なり + [verb (dictionary form)] + なり [noun] + なり + [noun] + なり
なり~なり offers two choices as examples – "A or B, or something like that" – and the sentence goes on to say that the listener should do one of them. It follows the dictionary form of a verb, or a noun with nothing in between, and the second half is advice, a suggestion or a request.
The two items are examples, not a closed list: anything along those lines would do. Because it tells someone what to do, it can sound pushy, even impatient, and you don't use it to someone above you.
When the two choices end the clause, the second なり often takes して before the sentence carries on, as in the example above.