[If you prefer, you can use raw onion] Preheat a pan over high heat, let it get very hot. Add the oil and onion and sautée it to make it nice and golden, it should take a couple of minutes. Add salt and pepper. If you prefer to cook the garlic to soften its flavour as well, you can add it to the onion once it's ready and sautée it for a few seconds.