Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Last active May 4, 2022 03:17
Show Gist options
  • Save coolaj86/2942349 to your computer and use it in GitHub Desktop.
Save coolaj86/2942349 to your computer and use it in GitHub Desktop.
Mac OS X Setup

See also: https://gist.github.com/coolaj86/c1593217bd58fc07404f

osx apple

  • Chrome

    • app-specific pass
  • iTerm 2

  • Xcode commandline tools developer.apple.com/downloads

  • System Preferences -> Keyboard -> Modifier Keys... -> Caps Lock Key -> No Action

  • PCKeyboardHack

    • sudo /Library/org.pqrs/PCKeyboardHack/scripts/kext.sh
    • Cmd R -> 36 (return)
    • Opt R -> 53 (esc)
    • Caps Lock -> 51 (delete)
  • System Preferences -> Sharing -> ssh

  • Oh my zsh

  • Install homebrew brew

    ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
    brew install htop netcat gnu-sed macvim irssi wget redis autoconf automake watch
    brew linkapps
    
  • System Preferences -> Sharing

    • Remote Login (ssh)
    • name
  • Firefox

    • VideoDownloadHelper
  • locate sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

  • AirDrop over Ethernet defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1

  • Faster Key Repeat defaults write NSGlobalDomain KeyRepeat -int 0

    • keyboard -> keyboard -> fast repeat, short delay
  • keyboard -> shortcuts -> spotlight

  • language & text -> input sources -> Dvorak

  • VLC

  • MakeMKV / daspi

  • Handbrake

  • Transmission

  • Disk Inventory X

  • VirtualBox + Addons

  • Pool

  • Skype

  • ScreenFlow

  • I Love Stars

  • Spotify

  • screen saver random order every 30 min

  • DisplayLink usb hdmi driver http://www.displaylink.com/support/mac_downloads.php

    • sudo kextload /System/Library/Extensions/DisplayLinkDriver.kext
  • four-finger swipe

  • defaults write com.apple.finder AppleShowAllFiles TRUE

  • killall Finder

Vim

mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -so ~/.vim/autoload/pathogen.vim \
  https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/scrooloose/syntastic.git
git clone git://github.com/altercation/vim-colors-solarized.git
git clone https://github.com/scrooloose/nerdtree.git
  • Restore .ssh, .gitconfig, .vimrc, Code, etc
  • brew install ssh-copy-id

Permanently Disable Paging (swap, swapfile) and safe sleep (hibernate)

# because I have 16gb RAM... I don't need swap, duh!
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sudo rm /private/var/vm/swapfile*
# and because hibernate takes TOO LONG to resume with 16gb on rotational media
sudo pmset hibernatemode 0
sudo rm -rf /var/vm/sleepimage

Note: The default hibernate mode requires system swap. To leave hibernate on for emergecy power off, use sudo pmset hibernatemode 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment