Those are both good, especially the alignment one. I always remain aligned, regardless how large of a fleet I'm flying with.
But when mining on your own, or in a small fleet which wont realistically be able to provide support, fly with a tanked fit rather than one which maximises mining efficiency.
If a gank squad is serious about killing you, then there's nothing you can do to stop them, they'll just keep adding additional destroyers to their squad until they have enough to assure your destruction in the timeframe they have available before Concord react. However, generally speaking you have to have done something seriously daft, or be in a well known ganking hotspot to encounter people like that. Your average gank squad will assume you're not tanked, or will aim to take out macro-miners who likely have minimal tank.
Often they'll fly a mining ship to the belt, sit there for a few cycles to lower suspicion as they gather some trivial amount of ore, but while they're there they'll be using passive targeting and ship-scanners to check out your fit, and they'll leave you alone if it looks like you can take a pounding and have fit to survive or at least draw out a gank attempt, as there's plenty of people who wont be fit for tanking and thus much easier targets.