This is for my own personal use. Some stuff might not work for you but it is shared here because it's important :)
Some of my thoughts on the topic are in my blog.
Download dotfiles-master (because you still don't have git):
https://github.com/icaromedeiros/dotfiles/archive/master.zip
Update software:
sudo softwareupdate -ia --verbose
To be safe, follow instructions from brew.sh
or use:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Python first than others formulas sh python/python.sh
sh brew/packages.sh