in France I think we choose the gender of the french word when possible, otherwise it seems to default to masculine?
un job -> because of "un emploi, un boulot, un travail"
une [surprise] party -> because of "une fête"
un hashtag -> masculine because we don't see an "e" at the end??
Sometimes, when the translation is obvious, we'll use the gender of the original word, e.g. "une backdoor" (porte dérobée).