In a medium skillet, heat 1/4 inch of oil. Add the shallot rings and fry over moderate heat, stirring a few times, until golden brown and crisp, about 3 minutes. With a slotted spoon, transfer the shallot rings to paper towels to drain. Add the garlic to the hot oil and fry, stirring a few times, until golden, about 1 minute. Transfer the garlic to the paper towels.