Skip to content

Instantly share code, notes, and snippets.

@vshymanskyy
Last active March 19, 2019 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vshymanskyy/33ad337009eb3cf6a98cb9d7553408c0 to your computer and use it in GitHub Desktop.
Save vshymanskyy/33ad337009eb3cf6a98cb9d7553408c0 to your computer and use it in GitHub Desktop.
Mac OS X

VirtualBox setup

VBoxManage modifyvm "OSX" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "OSX" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "OSX" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

    1280×720   (HD)
    1920×1080 (FHD)
    2560×1440 (QHD)
    2048×1080 (2K)
    3840×2160 (4K)
    5120×2880 (5K)

VBoxManage setextradata "OSX" VBoxInternal2/EfiGraphicsResolution 1920x1080

OS X setup

Install Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update
brew install bash bash-completion mc htop wget nmap jq ncdu colordiff watch
brew cask install iterm2
brew cask install caskroom/cask/meld

Add Bash to the list of allowed shells

sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells'
# Change to the new Bash
chsh -s /usr/local/bin/bash
# Enable .bashrc
echo 'if [ -f ~/.bashrc ]; then . ~/.bashrc; fi' >> ~/.bash_profile

Set up NVM (Node Version Manager)

brew install nvm

mkdir -p ~/.nvm
echo 'export PATH=/usr/local/bin/:$PATH' >> ~/.bashrc
echo 'export NVM_DIR=$HOME/.nvm' >> ~/.bashrc
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bashrc

Node.js setup

nvm install stable
#nvm alias default v6.11.1

Patch default config

defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock expose-animation-duration -float 0.12

defaults write com.apple.finder QLEnableTextSelection -bool TRUE
defaults write com.apple.finder AppleShowAllFiles -bool YES

mkdir -p ~/Pictures/Screenshots
defaults write com.apple.screencapture location ~/Pictures/Screenshots

killall SystemUIServer
killall Dock
killall Finder

sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment