Skip to content

Instantly share code, notes, and snippets.

@christian-ehrisman
Last active February 11, 2024 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christian-ehrisman/0f80fb375da35135cf468f717c8b8595 to your computer and use it in GitHub Desktop.
Save christian-ehrisman/0f80fb375da35135cf468f717c8b8595 to your computer and use it in GitHub Desktop.
Mac
snippits:
- name: "Whitelist App"
description: "Whitelist an app from the macOS Gatekeeper"
keywords: ["mac", "whitelist", "app", "gatekeeper", "install"]
code:
- command: "sudo xattr -r -d com.apple.quarantine <app_path>"
deps:
os: "mac"
vars:
app_path:
description: "Path to the app"
type: "string"
- name: "End Zscaler"
description: "Stop the Zscaler service"
keywords: ["kill", "zscaler", "end", "stop", "service"]
code:
- command: find /Library/LaunchAgents -name '*zscaler*' -exec launchctl unload {} \;;sudo find /Library/LaunchDaemons -name '*zscaler*' -exec launchctl unload {} \;
deps:
os: "mac"
related: ["Start Zscaler"]
- name: "Start Zscaler"
description: "Start the Zscaler service"
keywords: ["start", "zscaler", "service"]
code:
- command: open -a /Applications/Zscaler/Zscaler.app --hide; sudo find /Library/LaunchDaemons -name '*zscaler*' -exec launchctl load {} \;
deps:
os: "mac"
related: ["End Zscaler"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment