Skip to content

Instantly share code, notes, and snippets.

@midzdotdev
Last active June 23, 2022 13:38
Show Gist options
  • Select an option

  • Save midzdotdev/34247844adc6c103612342bc94cbecf7 to your computer and use it in GitHub Desktop.

Select an option

Save midzdotdev/34247844adc6c103612342bc94cbecf7 to your computer and use it in GitHub Desktop.

Revisions

  1. midzdotdev revised this gist Dec 26, 2019. No changes.
  2. midzdotdev revised this gist Dec 6, 2019. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,12 @@
    * All apps run without security warning: `sudo spctl --master-disable`
    * Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
    * Enable Single App Mode: `defaults write com.apple.dock single-app -bool true;killall Dock`
    * Disable Single App Mode: `defaults write com.apple.dock single-app -bool no;killall Dock`

    ## Single App Mode
    Back in 1999, Mac OS X ran in Single App Mode. In this state, opening an app minimizes the current one - and you can still make macOS behave that way today.
    * Enable: `defaults write com.apple.dock single-app -bool true;killall Dock`
    * Disable: `defaults write com.apple.dock single-app -bool no;killall Dock`

    ## Charging Sound
    The new-ish super slim 12-inch 2015 __MacBook__ was the first of it's kind to make a chime when being plugged in. It's possible to have this on any MacBook with the command below.
    * Enable: `defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &`
    * Disable: `defaults write com.apple.PowerChime ChimeOnAllHardware -bool false;killall PowerChime`
  3. midzdotdev revised this gist Nov 18, 2019. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    All apps run without security warning: `sudo spctl --master-disable`

    Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
    * All apps run without security warning: `sudo spctl --master-disable`
    * Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
    * Enable Single App Mode: `defaults write com.apple.dock single-app -bool true;killall Dock`
    * Disable Single App Mode: `defaults write com.apple.dock single-app -bool no;killall Dock`
  4. midzdotdev revised this gist Oct 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion commands.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    Allow apps to run from anywhere: `sudo spctl --master-disable`
    All apps run without security warning: `sudo spctl --master-disable`

    Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
  5. midzdotdev revised this gist Oct 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    Allow apps to run from anywhere: `sudo spctl --master-disable`

    Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
  6. midzdotdev revised this gist Oct 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    Allow apps to run from anywhere: `sudo spctl --master-disable`
    Disable [SIP](https://support.apple.com/en-gb/HT204899): `csrutil disable` (from recovery - ⌘R at boot)
  7. midzdotdev revised this gist Oct 13, 2019. No changes.
  8. midzdotdev created this gist Oct 13, 2019.
    1 change: 1 addition & 0 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Allow apps to run from anywhere: `sudo spctl --master-disable`