Skip to content

Instantly share code, notes, and snippets.

@nietaki
Forked from pyetras/0bootstrap.sh
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nietaki/4c5248718751b4e59cf3 to your computer and use it in GitHub Desktop.
Save nietaki/4c5248718751b4e59cf3 to your computer and use it in GitHub Desktop.
#AppStore: Install XCode
#install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
curl https://gist.githubusercontent.com/pyetras/4b59e1902cfaf9af3c98/raw/Caskfile > Caskfile
curl https://gist.githubusercontent.com/pyetras/4b59e1902cfaf9af3c98/raw/Brewfile > Brewfile
curl https://raw.githubusercontent.com/Homebrew/homebrew/6319cac687fa722a1d005fe056e0dac22d91ef9c/Library/Contributions/cmd/brew-bundle.rb > /usr/local/Library/Homebrew/cmd/bundle.rb
#will ask for sudo
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
brew bundle Caskfile
brew bundle Brewfile
rm Brewfile Caskfile
#complete osxfuse installation
sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems/
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
#osx defaults via https://github.com/mathiasbynens/dotfiles/blob/master/.osx
curl https://gist.githubusercontent.com/pyetras/4b59e1902cfaf9af3c98/raw/osx.sh | bash
#yadr osx dotfiles (zsh vim etc. customization)
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`" -s ask
#node version manager
curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | bash
#ruby version manager
curl -sSL https://get.rvm.io | bash -s
easy_install pip
pip install virtualenvwrapper ipython pygments flake8 rope ropemode line_profiler memory_profiler mackup
mackup restore
#install anaconda for python: https://store.continuum.io/cshop/anaconda/
# http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder
install git
install coreutils
install ack
install spark #charting in terminal
install python
install wget
install boost
install csshx #controlling multiple sessions
install cmake
install llvm
install couchdb
install htop-osx
install openjpeg
install openssl
install postgresql
#install phantomjs #headless browser
install homebrew/science/R
install rabbitmq
install redis
install sqlite
install swi-prolog
install zsh
install sshfs
install mackup #restoring/saving mac app settings
#install dot
#install swig
install hub # tool for github
install vim --override-system-vi
#install homebrew/versions/gcc47
cleanup
prune
install caskroom/cask/brew-cask
#utilites
cask install flux
cask install dropbox
cask install bettertouchtool
cask install apptrap
cask install perian
cask install launchrocket
cask install flash-player
cask install trim-enabler #ssd disks
cask install xquartz
#dev
cask install toggldesktop
cask install dash
cask install fenix #simple static server
cask install gitx-rowanj #git gui
cask install hex-fiend
cask install virtualbox
cask install processing
cask install rdm #redis gui
cask install rstudio #r gui
cask install textmate
cask install mactex #latex
cask install vagrant
cask install octave
cask install sublime-text
cask install bonjour-browser
cask install iterm2
#media & internet
cask install google-chrome
cask install firefox
cask install plex-home-theater
cask install sitesucker
cask install torbrowser
cask install transmission
cask install vlc
#apps
cask install calibre
cask install steam
cask install spotify
cask install gifrocket
cask install handbrake
cask install hipchat
cask install inkscape
cask install simple-comic
cask install skim
cask install skype
cask install slicy
cask install wineskin-winery
cask install wireshark
cask install anki
cask install cloud
#quicklook
cask install betterzipql
cask install qlmarkdown
cask install qlstephen
cask install quicklook-json
cask install quicklook-csv
cask install webp-quicklook
cask install qlcolorcode
cask install qlprettypatch
cask install suspicious-package
cleanup
#!/usr/bin/env bash
# ~/.osx — https://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Reveal IP address, hostname, OS version, etc. when clicking the clock
# in the login window
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Disable “natural” (Lion-style) scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# Save screenshots to the desktop
defaults write com.apple.screencapture location -string "${HOME}/Desktop"
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
# Show icons for hard drives, servers, and removable media on the desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Show item info near icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
# Show item info to the right of the icons on the desktop
/usr/libexec/PlistBuddy -c "Set DesktopViewSettings:IconViewSettings:labelOnBottom false" ~/Library/Preferences/com.apple.finder.plist
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Show the ~/Library folder
chflags nohidden ~/Library
# Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true
# Don’t show Dashboard as a Space
defaults write com.apple.dock dashboard-in-overlay -bool true
# Don’t automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
# Don’t display the annoying prompt when quitting iTerm
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
#Enable locate command
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
###############################################################################
# Transmission.app #
###############################################################################
# Don’t prompt for confirmation before downloading
defaults write org.m0k.transmission DownloadAsk -bool false
# Trash original torrent files
defaults write org.m0k.transmission DeleteOriginalTorrent -bool true
# Hide the donate message
defaults write org.m0k.transmission WarningDonate -bool false
# Hide the legal disclaimer
defaults write org.m0k.transmission WarningLegal -bool false
###############################################################################
# Kill affected applications #
###############################################################################
for app in "Activity Monitor" "cfprefsd" \
"Dock" "Finder" "SystemUIServer" \
"Transmission"; do
killall "${app}" > /dev/null 2>&1
done
echo "Done. Note that some of these changes require a logout/restart to take effect."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment