Skip to content

Instantly share code, notes, and snippets.

View martimlobao's full-sized avatar
🚀
Adjusting tiny lights on a metal rectangle

Martim Lobao martimlobao

🚀
Adjusting tiny lights on a metal rectangle
View GitHub Profile
@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active May 26, 2024 01:13
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
#!/usr/bin/env bash
#
# Bash traceback
#
# Because the option “set -o errexit” / "set -e" does not show any message when
# it stops your Bash script in some cases (for example var=$(yourcommand) will
# exit without any message, even when yourcommand returns an exit code
# different from zero), I recommend you to add the code below to your bash scripts
# to show a traceback each time “errexit” forces your Bash script to stop.
#
@JulianNorton
JulianNorton / uninstall-rippling.sh
Created August 13, 2018 22:31
uninstall rippling
#!/bin/bash
if [ `id -u` -ne 0 ]; then
echo "Rippling uninstall must be run by root"
exit 1
fi
sudo launchctl unload /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /opt/rippling
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 2, 2024 23:53 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy