From e26e2ca341e736f49a6b29af5dee7e9ad9e8d51d Mon Sep 17 00:00:00 2001 From: Maxim Veksler Date: Tue, 27 Oct 2015 23:00:53 +0200 Subject: [PATCH 1/6] Setting zsh as default shell on El Capitan Work around this bug: ```bash chsh -s $(brew --prefix)/bin/zsh chsh: /usr/local/bin/zsh: non-standard shell ``` --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 75af4b5..ae6abb3 100644 --- a/README.md +++ b/README.md @@ -1264,6 +1264,7 @@ shell for OS X, Linux, and the rest of the family. Install the latest version and set as current users' default shell: ```bash brew install zsh && \ +sudo sh -c 'echo $(brew --prefix)/bin/zsh >> /etc/shells' \ chsh -s $(brew --prefix)/bin/zsh ``` From 3bd32071d8121b866a3f6b24b7061ea438a8eed4 Mon Sep 17 00:00:00 2001 From: Maxim Veksler Date: Thu, 29 Oct 2015 19:31:01 +0200 Subject: [PATCH 2/6] Fix conditional chaining --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae6abb3..aa6c387 100644 --- a/README.md +++ b/README.md @@ -1264,7 +1264,7 @@ shell for OS X, Linux, and the rest of the family. Install the latest version and set as current users' default shell: ```bash brew install zsh && \ -sudo sh -c 'echo $(brew --prefix)/bin/zsh >> /etc/shells' \ +sudo sh -c 'echo $(brew --prefix)/bin/zsh >> /etc/shells' && \ chsh -s $(brew --prefix)/bin/zsh ``` From 444d40ac9ab1a21a52e175e13b3aedd607807330 Mon Sep 17 00:00:00 2001 From: JEphron Date: Tue, 3 Nov 2015 12:07:29 -0500 Subject: [PATCH 3/6] Add more Wi-Fi commands --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9f2fd92..0e07be8 100644 --- a/README.md +++ b/README.md @@ -774,6 +774,11 @@ dig +short myip.opendns.com @resolver1.opendns.com ### Wi-Fi +#### Join a Wi-Fi Network +```bash +networksetup -setairportnetwork en0 WIFI_SSID WIFI_PASSWORD +``` + #### Scan Available Access Points Create a symbolic link to the airport command for easy access: ```bash @@ -805,6 +810,11 @@ Exchange SSID with the SSID of the access point you wish to query the password f security find-generic-password -D "AirPort network password" -a "SSID" -gw ``` +#### Turn on Wi-Fi Adapter +```bash +networksetup -setairportpower en0 on +``` + ## Package Managers - [Fink](http://www.finkproject.org) - The full world of Unix Open Source software for Darwin. From 76decfdde7524f86bc7dbbeea0246380388422bb Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 4 Nov 2015 13:01:23 +0100 Subject: [PATCH 4/6] Add Auto Show/Hide Delay command --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 00d434c..8be8e61 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,13 @@ defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-t killall Dock ``` +#### Set Auto Show/Hide Delay +The float number defines the show/hide delay in ms. +```bash +defaults write com.apple.Dock autohide-delay -float 0 &&\ +killall Dock +``` + ## Documents From d48dddd6a9f86acccf93e2d96ec9008ea1930cb3 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 4 Nov 2015 13:20:48 +0100 Subject: [PATCH 5/6] Fix capitalization According to Chicago Manual of Style --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8be8e61..b2d8796 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ rm -r ~/Library/Containers/com.apple.RemoteDesktop ### iTunes -#### Stop Responding to the Keyboard Media Keys +#### Stop Responding to Keyboard Media Keys ```bash launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist ``` @@ -196,7 +196,7 @@ sudo defaults write /System/Library/Launch Daemons/com.apple.backupd-auto StartI hash tmutil &> /dev/null && sudo tmutil disablelocal ``` -#### Prevent Time Machine From Prompting to Use New Hard Drives as Backup Volume +#### Prevent Time Machine from Prompting to Use New Hard Drives as Backup Volume ```bash defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true ``` @@ -248,7 +248,7 @@ brew install --HEAD neovim ### Xcode -#### Install Command Line Tools Without Xcode +#### Install Command Line Tools without Xcode ```bash xcode-select --install ``` @@ -593,12 +593,12 @@ caffeinate -u -t 3600 sudo pmset -g ``` -#### Put Display to Sleep After 15 Minutes of Inactivity +#### Put Display to Sleep after 15 Minutes of Inactivity ```bash sudo pmset displaysleep 15 ``` -#### Put Computer to Sleep After 30 Minutes of Inactivity +#### Put Computer to Sleep after 30 Minutes of Inactivity ```bash sudo pmset sleep 30 ``` @@ -623,14 +623,14 @@ sudo systemsetup -setcomputersleep Never sudo systemsetup -setrestartfreeze on ``` -#### Enable Chime when Charging +#### Enable Chime When Charging Play iOS charging sound when MagSafe is connected. ```bash defaults write com.apple.PowerChime ChimeOnAllHardware -bool true && \ open /System/Library/CoreServices/PowerChime.app ``` -#### Disable Chime when Charging +#### Disable Chime When Charging ```bash defaults write com.apple.PowerChime ChimeOnAllHardware -bool false && \ killall PowerChime From 40a8949c3609ab5c3fcb6f27ad9ef74739a03cf1 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 4 Nov 2015 13:22:02 +0100 Subject: [PATCH 6/6] Update contributing.md --- contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing.md b/contributing.md index d9e8e22..a9bcaff 100644 --- a/contributing.md +++ b/contributing.md @@ -4,7 +4,7 @@ Please ensure your pull request adheres to the following guidelines: - Search previous suggestions before making a new one, as yours may be a duplicate. - Make an individual pull request for each suggestion. -- Titles need to be [capitalized](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html) properly. Don't be lazy. For help with this, see [Online Capitalize Tool](https://headlinecapitalization.com). +- Titles need to be [capitalized](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html) properly. Don't be lazy. For help with this, see [Online Capitalize Tool](https://headlinecapitalization.com). Use *Chicago Manual of Style* rules. - Keep descriptions short and simple. - End all descriptions with a full stop/period. - Order titles alphabetically within each category.