Finely chop the garlic and onion.
Crack the eggs into a bowl and season with salt and pepper.
Heat olive oil in a pan and sauté the garlic and onion.
When the onion turns translucent, pour in the beaten eggs.
Cook gently over low heat, stirring softly until just set.
Transfer to a plate and serve.