Skip to content

Instantly share code, notes, and snippets.

@JonathanRaiman
Last active August 29, 2015 14:16
Show Gist options
  • Save JonathanRaiman/f2c5b78e52dffc5797b0 to your computer and use it in GitHub Desktop.
Save JonathanRaiman/f2c5b78e52dffc5797b0 to your computer and use it in GitHub Desktop.
Dot Installation of Python on OS X
#!/bin/bash
# stop script on error and print it
set -e
# inform me of undefined variables
set -u
# handle cascading failures well
set -o pipefail
# install homebrew
sudo xcodebuild
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install git
brew install git
brew install caskroom/cask/brew-cask
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
#sudo tlmgr update --self
#sudo tlmgr install latexmk
# get sublime text:
brew cask install sublime-text
brew cask install skype
brew cask install transmission
brew cask install vlc
# source tutorial:
#http://dedalus-project.readthedocs.org/en/latest/machines/mac_os/mac_os.html
CODING_DIR=~/Desktop/Coding
CODING_DIR_PYTHON="$CODING_DIR/python_packages"
CODING_DIR_RUBY="$CODING_DIR/ruby"
CODING_DIR_SCHOOL="$CODING_DIR/school"
function git_clone {
if [ ! -d $1 ]; then
git clone git@github.com:JonathanRaiman/$1.git
else
pushd $1
git pull origin master
popd
fi
}
if [ ! -d "$CODING_DIR" ]; then
mkdir $CODING_DIR
fi
pushd $CODING_DIR
if [ ! -d $CODING_DIR_PYTHON ]; then
mkdir $CODING_DIR_PYTHON
fi
pushd $CODING_DIR_PYTHON
git_clone xml_cleaner
git_clone wikipedia_ner
git_clone theano_lstm
git_clone recurrentjs
git_clone gradient_optimizers
git_clone PVDM
git_clone word2vec_extended
git_clone epub_conversion
popd
git_clone skeleton_to_lattice
git_clone cython_lstm
git_clone trend_influencer_analysis
git_clone numpy_to_ejml
git_clone language_modeling
git_clone memory_backpack
git_clone KingMan
git_clone search
if [ ! -d $CODING_DIR_RUBY ]; then
mkdir $CODING_DIR_RUBY
fi
pushd $CODING_DIR_RUBY
git_clone jonparticlemaker
git_clone wikipedia_parser
git_clone time_methods
git_clone box_puts
git_clone progressbar
git_clone geofirechat
git_clone shark-rb
git_clone mongo_mapper_parallel
popd
if [! -d $CODING_DIR_SCHOOL]; then
git_clone MathsThesisWRLattices
git_clone PhysicsSeniorPresentation
fi
popd
# set up some taps and update brew
brew tap homebrew/science # a lot of cool formulae for scientific tools
brew tap homebrew/python # numpy, scipy
brew update && brew upgrade
# install a brewed python
# Prep system
brew install wget
brew install neo4j
brew install cmake
brew install protobuf
brew install gflags
brew install gperftools
brew install gcc
brew install swig
# install rvm and Ruby 2.0
\curl -L https://get.rvm.io | bash -s stable --ruby=2.0.0
# Python 3
brew install python3
pip3 install scipy
brew install pyqt
brew install zmq
pip3 install pyzmq
pip3 install pygments
pip3 install --pre protobuf
# dependency for matplotlib
brew install freetype
pip3 install matplotlib
pip3 install ipython
pip3 install jinja2
pip3 install tornado
pip3 install jsonschema
brew install pyqt
pip3 install seaborn
# deep learning stuff
brew install eigen
pip3 install gensim
pip3 install xml_cleaner
pip3 install theano
# Install quicklook plugin
brew cask install qlmarkdown
# or download here https://github.com/toland/qlmarkdown/releases/download/v1.3.1/QLMarkdown.qlgenerator.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment