Heat the oil in a medium skillet over medium-high heat. Add the onion, and season with salt and pepper. Cook, stirring occasionally, until slightly softened, about 3 minutes. Add the garlic, ginger, cumin powder, curry powder, and red pepper flakes, and cook until fragrant, about 1 minute. (Alternatively, toss the onion with the oil, garlic, ginger, cumin, curry powder, and red pepper flakes in a heatproof bowl, and microwave on high, stirring occasionally, until softened, about 4-5 minutes.) Do Ahead: The aromatics can be cooked 1 day ahead. Let cool, then cover and refrigerate.