You have had esta noche for a while. The masculine is este, and pulling the t out gives you the word for that.
este → ese · esta → esa
Quiero ese auto · No quiero ese auto, porque es muy grande
The group of masculine nouns ending -ma, which came in through Greek where they are neuter but look masculine.
Esquema also shows the other rule at work: Spanish cannot start with s plus a consonant, so scheme gains an e, like España and espagueti.
Mostly words ending o are masculine and words ending a are feminine, but there are exceptions in both directions.
Un planeta · Los planetas · Las manos · Esta mano · Esa mano
Mano is really the only true word ending in o that is feminine. La foto and la moto only look like exceptions: they are shortened from la fotografía and la motocicleta, and keep the la.
Mano means hand, and that man- is hiding in plenty of English.
Manage means to handle, and historically it had a special use for handling horses. Which is neat, because manejar is used in some Latin American countries to mean to drive.
¿Me puedes dar una mano? / ¿Puedes darme una mano? · ¿Me podrías dar una mano? · Deberías darme una mano · Deberían darme una mano · Nos deberían dar una mano
With could and should in hand, the same sentence can be tuned. Could is would can, should is would owe.
¿Me puedes dar una mano? · ¿Me podrías dar una mano? · Deberías darme una mano
For taking a photo you may hear either tomar or sacar.
Manejo el problema · Estoy manejando el problema · Estoy tomando una foto · Tomaría una foto · Me gustaría tomar una foto, pero no tengo mi cámara