Two useful threads I’ve kept bookmarked for this sort of thing. Between the two of them they have most of the tricks of the trade.