In a large bowl, mix the flour and salt. Add the vegetable oil and rub it into the flour until it resembles coarse crumbs.
Gradually add the warm water, mixing until a dough forms. Knead on a floured surface for about 5 minutes until smooth. Cover with a damp cloth and let it rest for 30 minutes.
In a skillet over medium heat, cook the ground beef or lamb until browned. Drain any excess fat.
Add the finely chopped onion, ground cumin, black pepper, paprika, and salt to the meat. Cook until the onions are soft. Stir in the parsley or cilantro if using. Remove from heat and let cool.
On a floured surface, roll out the dough into a thin sheet. Cut into squares or circles, depending on your preference (about 4 inches or 10 cm in size).
Place a spoonful of the filling in the center of each dough square or circle. Fold over to form a triangle or half-moon shape, and press the edges to seal. You can use a fork to crimp the edges if desired.
Preheat your oven to 375°F (190°C). Line a baking sheet with parchment paper.
Place the samsa on the prepared baking sheet. Brush the tops with the beaten egg.
Bake for about 20-25 minutes, or until the samsa are golden brown and crisp.
Enjoy your meal!