How to Disable GateKeeper and SIP on MacOS
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