Disable GateKeeper and SIP

How to Allow Apps from Anywhere in Gatekeeper for macOS Sierra

sudo spctl --master-disable

Returning to Default Gatekeeper Security in macOS Sierra

sudo spctl --master-enable

Partially disable System Integrity Protection (SIP) for TotalFinder

csrutil enable --without debug