osx: remove extraneous lines, fix typo
This commit is contained in:
parent
828ce524ae
commit
4ff47ae1d6
10
osx.md
10
osx.md
|
@ -13,13 +13,11 @@ layout: 2017/sheet
|
||||||
|
|
||||||
__Running `launchctl list` show you what launch scripts are currently loaded.__
|
__Running `launchctl list` show you what launch scripts are currently loaded.__
|
||||||
|
|
||||||
|
|
||||||
### Hide desktop icons
|
### Hide desktop icons
|
||||||
|
|
||||||
defaults write com.apple.finder CreateDesktop -bool false
|
defaults write com.apple.finder CreateDesktop -bool false
|
||||||
killall Finder
|
killall Finder
|
||||||
|
|
||||||
|
|
||||||
### Auto-hide other windows on dock switch
|
### Auto-hide other windows on dock switch
|
||||||
|
|
||||||
defaults write com.apple.dock single-app -bool TRUE
|
defaults write com.apple.dock single-app -bool TRUE
|
||||||
|
@ -28,19 +26,16 @@ layout: 2017/sheet
|
||||||
defaults delete com.apple.dock single-app
|
defaults delete com.apple.dock single-app
|
||||||
killall Dock
|
killall Dock
|
||||||
|
|
||||||
|
|
||||||
### Flush DNS
|
### Flush DNS
|
||||||
|
|
||||||
killall -HUP mDNSResponder # 10.8+
|
killall -HUP mDNSResponder # 10.8+
|
||||||
dscacheutil -flushcache # 10.7 below
|
dscacheutil -flushcache # 10.7 below
|
||||||
|
|
||||||
|
|
||||||
### Turn off spotlight
|
### Turn off spotlight
|
||||||
|
|
||||||
sudo vim /etc/hostconfig # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO-
|
sudo vim /etc/hostconfig # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO-
|
||||||
mdutil -i off /
|
mdutil -i off /
|
||||||
|
|
||||||
|
|
||||||
### Turn on/off proxy
|
### Turn on/off proxy
|
||||||
|
|
||||||
sudo networksetup -setsocksfirewallproxystate Wi-Fi off
|
sudo networksetup -setsocksfirewallproxystate Wi-Fi off
|
||||||
|
@ -50,7 +45,6 @@ layout: 2017/sheet
|
||||||
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
|
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
|
||||||
sudo networksetup -setsocksfirewallproxystate Ethernet on
|
sudo networksetup -setsocksfirewallproxystate Ethernet on
|
||||||
|
|
||||||
|
|
||||||
### System utils
|
### System utils
|
||||||
|
|
||||||
- `networksetup` - Configure network (ip, dns, proxy, etc)
|
- `networksetup` - Configure network (ip, dns, proxy, etc)
|
||||||
|
@ -59,8 +53,7 @@ layout: 2017/sheet
|
||||||
- `diskutil` - Controll disk (format, eject, unmount, etc)
|
- `diskutil` - Controll disk (format, eject, unmount, etc)
|
||||||
- `launchctl` - Controll running "agents"
|
- `launchctl` - Controll running "agents"
|
||||||
|
|
||||||
|
### Useful utils
|
||||||
### Usefull utils
|
|
||||||
|
|
||||||
- `open` - open files and directories ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/open.1.html))
|
- `open` - open files and directories ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/open.1.html))
|
||||||
- `textutil` - manipulate text files of various formats ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/textutil.1.html))
|
- `textutil` - manipulate text files of various formats ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/textutil.1.html))
|
||||||
|
@ -73,4 +66,3 @@ layout: 2017/sheet
|
||||||
- `scutil`
|
- `scutil`
|
||||||
|
|
||||||
__INFO: `brew` ([link](https://brew.sh)) is highly recomended utility__
|
__INFO: `brew` ([link](https://brew.sh)) is highly recomended utility__
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue