Pour salt or sugar onto a small plate. Rub a small slice of lime around the rim of two glasses. Roll the top of the glasses in the salt/sugar until a thin layer sticks to the rim.
Mix drinks
Fill cocktail shaker with ice. Pour in tequila, triple sec, lime juice, and prickly pear syrup. Close cocktail shaker and shake vigorously.
Add ice and pour drink evenly into both glasses. Garnish with a slice or wedge of lime.