Skip to content

Instantly share code, notes, and snippets.

@jgeo
jgeo / updating_to_ruby_2x.sh
Last active August 29, 2015 14:03
Upgrading to Ruby 2.x
echo 'Updating RVM'
rvm get stable
rvm cleanup all
echo "Installing Ruby version $RUBY_VERSION"
RUBY_VERSION=2.1.2
rvm install $RUBY_VERSION
rvm reload
rvm --default use $RUBY_VERSION
rvm reload
@jgeo
jgeo / after_upgrade_to_mavericks.sh
Last active August 29, 2015 14:06
upgrading to OS X Mavericks
echo 'Please Accept Xcode License'
xcode-select --install
echo 'Updating Homebrew'
brew uninstall postgresql
brew uninstall postgresql91
brew uninstall postgis
brew uninstall proj
brew uninstall geos
@jgeo
jgeo / postgis.rb
Last active August 29, 2015 14:06
postgis 1.5.3
require 'formula'
def raster?
ARGV.include? '--with-raster'
end
def topology?
ARGV.include? '--with-topology'
end
echo 'Updating RVM'
rvm get stable
rvm cleanup all
echo "Installing Ruby version $RUBY_VERSION"
RUBY_VERSION=2.1.2
rvm uninstall $RUBY_VERSION
rvm install $RUBY_VERSION
rvm --default use $RUBY_VERSION
gem install bundler
@jgeo
jgeo / after_upgrade_to_yosemite.sh
Last active August 29, 2015 14:08
Upgrade to Yosemite Script
echo 'Updating xcode command line tools'
xcode-select --install
echo 'Updating Homebrew'
brew uninstall postgresql
brew uninstall postgresql91
brew uninstall postgis
brew uninstall proj
brew uninstall geos
@jgeo
jgeo / after_upgrade_to_yosemite_2.sh
Last active August 29, 2015 14:08
Upgrade to Yosemite Part 2
echo 'Updating RVM'
rvm get stable
rvm cleanup all
echo "Installing Ruby version $RUBY_VERSION"
RUBY_VERSION=2.1.4
rvm install $RUBY_VERSION --disable-binary
rvm --default use $RUBY_VERSION
@jgeo
jgeo / test
Created August 24, 2015 20:50
te
@jgeo
jgeo / after_upgrade_to_sierra.sh
Created March 2, 2017 20:50
Upgrading to Mac OS Sierra
#Update all apps for Sierra
brew upgrade
brew update
#Link updates
brew linkapps macvim
#Restart Services
brew services restart redis