https://github.com/francomile/mac-terminal-toollkit
A Mac OS X terminal toolkit for power users
https://github.com/francomile/mac-terminal-toollkit
Last synced: 4 months ago
JSON representation
A Mac OS X terminal toolkit for power users
- Host: GitHub
- URL: https://github.com/francomile/mac-terminal-toollkit
- Owner: francomile
- Created: 2015-09-14T00:00:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T23:33:03.000Z (almost 7 years ago)
- Last Synced: 2025-02-25T08:28:35.395Z (over 1 year ago)
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mac OS X Terminal toolkit
---
### Create a _bootable_ usb stick with dd command
```bash
$ hdiutil convert -format UDRW -o ~/Desktop/target.img ~/Desktop/ubuntu.iso
$ diskutil list
$ diskutil unmountDisk /dev/disk1
$ sudo dd if=/Users/username/Desktop/ubuntu.img.dmg of=/dev/rdisk1 bs=1m
$ diskutil eject /dev/disk1
```
---
### Speed up keyboard repetition.
```bash
defaults write -g ApplePressAndHoldEnabled -bool false
```
##### Define the desired repetition speed => 0 1 2 3 less is faster=(0) Set it really fast:
```bash
defaults write -g KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 12
```
##### Set a short delay until keypressed => less is faster (don't put it under 7 or you won't be able to write properly):
```bash
defaults write NSGlobalDomain InitialKeyRepeat -int 12
```
---
### Fix the "no connected camera" error in your mac.
```bash
sudo killall VDCAssistant
sudo killall AppleCameraAssistant
```
---
### Encrypt some file with openssl.
```bash
openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc
```
### Decrypt it back.
```bash
openssl enc -aes-256-cbc -d -in file.txt.enc -out file.txt
```
---
### Disable 'System Integrity Protection' on Mac OS X **El Capitan**.
1. Restart your Mac.
2. Before OS X starts up, hold down `Command-R` and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery.
3. From the Utilities menu, select Terminal.
4. At the prompt type exactly the following and then press Return: `csrutil disable`.
5. Terminal should display a message that SIP was disabled.
6. From the menu, select Restart.
You can re-enable **System Integrity Protection** by folowing the above steps, but using `csrutil enable` instead.
---
### Scan your local wireless environment from the command line.
Note that if you're running **El Capitan** you'll have to disable **System Integrity Protection** to make the symlink to `/usr/sbin`.
```bash
$ sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
$ aiport -s
```
For convenience, you can add an alias to your `.bash_profile` or `.zshrc` like the following.
```bash
alias wifiscan='airport -s'
```
---
### Increase Window resize speed for Cocoa apps.
```bash
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
```
---
### Disable Warning when changing file extension.
```bash
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
```
---
### Show hidden `~/Library` folder.
```bash
chflags nohidden ~/Library
```
---
### Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons.
```bash
defaults write com.apple.finder QuitMenuItem -bool true
```
---
### Speed up Mission Control animations.
```bash
defaults write com.apple.dock expose-animation-duration -float 0.1
```
---
### Disable Dashboard.
```bash
defaults write com.apple.dashboard mcx-disabled -bool true
```
---
### Don’t display the annoying prompt when quitting iTerm.
```bash
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
```
---
### Disable the sound effects on boot.
```bash
sudo nvram SystemAudioVolume=" "
```
---
### Check for software updates daily, not just once per week.
```bash
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
```