Skip to content

Instantly share code, notes, and snippets.

@alfasin
Forked from zenorocha/.hyper.js
Last active August 29, 2015 14:14
Show Gist options
  • Save alfasin/0b2ef50dd96c1673df64 to your computer and use it in GitHub Desktop.
Save alfasin/0b2ef50dd96c1673df64 to your computer and use it in GitHub Desktop.

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

Make sure everything is up to date.:1 :1

Software Update

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
  3. Then go to the terminal and install "Command Line Tools":
xcode-select --install

Notice this only works for Mac OS X Mavericks (10.9). For earlier versions, continue to use the in-app download in Xcode.

3. Install Dotfiles

Visit my Dotfiles repo for instructions.

This will install some useful stuff like zsh shell and lots of plugins using oh-my-zsh. Besides that, it will also set a new theme and some useful aliases for the terminal.

4. Install Softwares

Many softwares can be installed through homebrew-cask which makes the process way simpler:

curl -L https://gist.githubusercontent.com/zenorocha/7159780/raw/9b9413ff1306d78be6447f4beddcf90e7e8b2b8a/softwares.sh | sh

Just make sure to move all apps from /opt/homebrew-cask/Caskroom/ to /Applications. And to remove all installations files from /Library/Caches/Homebrew.

What's included?

Browser
Development
Other

Unfortunately some apps aren't available through homebrew-cask, so you need to install it manually.

App Store
Manually

5. Generate SSH keys for GitHub

Visit GitHub's official guide for instructions.

From that point on you're going to be able to do some git operations with GitHub \o/

6. Set Chrome Canary as default browser

  1. Launch Safari
  2. Apple ➜ Preferences
  3. General ➜ Default Web Browser
  4. Select “Chrome Canary” from the drop-down menu

7. Configure Sublime Text

Visit my Sublime Text preferences repo for instructions.

There you can find the whole list of plugins, preferences and snippets.

8. Install Alfred Workflows

Visit my Alfred workflow collection repo for instructions.

9. Set NPM user

npm adduser zenorocha

10. Download IE test VMs for VirtualBox

These take a while to download, so maybe do it on a separate day as a background process.

# IE8 - XP
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"

# IE9 - Win7
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7/IE9.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"

# IE10 - Win8
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}"

11. Profit!

:)

#!/bin/sh
# Disable GateKeeper
spctl --master-disable
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
echo "Don’t forget to add $(brew --prefix coreutils)/libexec/gnubin to \$PATH."
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install wget with IRI support
brew install wget --enable-iri
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
brew install php54
######################################
# Install other useful binaries
######################################
brew install ack
brew install git
brew install bash-completion
brew install git-flow
brew install lynx
brew install node
# Pigz = Parallel gzip - Zlib
brew install pigz
# http://blog.johnrbussiculo.com/2013/01/batch-rename-multiple-files-mac-osx-command-line/
brew install rename
brew install tree
brew install webkit2png
brew install zopfli
brew install imagemagick
#brew install android-sdk
# Figlet: Nice ascii big text (to show text in all available fonts: showfigfonts test)
brew install figlet
# Personal favorites: roman, big, cyberlarge, doh, nancyj, starwars
function figletfavs() {
for i in roman big cyberlarge doh nancyj starwars
do
echo " "
echo " "
echo " "
echo "$i:"
echo " "
figlet -f $i -w 200 $1
done
}
brew install gawk
# Add homebrew/versions
brew tap homebrew/versions
#brew install lua52
# Install native apps
brew tap phinze/homebrew-cask
brew install brew-cask
function installcask() {
if brew cask info "${@}" | grep "Not installed" > /dev/null; then
brew cask install "${@}"
else
echo "${@} is already installed."
fi
}
installcask dropbox
installcask google-chrome
#installcask google-chrome-canary
installcask imagealpha
installcask imageoptim
installcask iterm2
#installcask macvim
installcask miro-video-converter
# Install markdown
brew install markdown
# homebrew-cask
brew tap phinze/homebrew-cask
brew install brew-cask
# browser
installcask firefox-aurora
installcask google-chrome
installcask google-chrome-canary
installcask opera-next
# development
installcask sublime-text-3
installcask filezilla
installcask kaleidoscope
installcask iterm2
installcask sourcetree
installcask virtualbox
brew install maven
# other
installcask alfred
brew cask alfred link
installcask dropbox
installcask mou
installcask skype
yes Y|installcask evernote
installcask skitch
installcask diffmerge
ln -s /Applications/DiffMerge.app/Contents/Resources/diffmerge.sh /usr/local/bin/diffmerge
brew cleanup
# install cloudsol
export NETFLIX_ENVIRONMENT=test
sudo easy_install setuptools
sudo easy_install pip
brew install postgresql
sudo pip install git+ssh://git@stash.corp.netflix.com:7999/oe/nflx-cloudsol-python-libs.git
# install a few python packages
pip install numpy
pip install pandas
# install xcode commandline tool
xcode-select --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment