Skip to content

Instantly share code, notes, and snippets.

View newhavengill's full-sized avatar

Justin Gill newhavengill

View GitHub Profile

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

I was encouraged to fork this and modify it to my heart's content to match my own needs. Thanks to @kevinelliott

Note: I manage my dotfiles and vimrc with Homeshick. My environment is hyper customized and is not for everyone's taste.

@newhavengill
newhavengill / jdk8-jdk7-toggle
Last active September 1, 2016 04:24
Add jdk8 and toggle between jdk7 and jdk8
## I'm running Mavericks. No Java and no Maven anymore
## Download jdk8 --> https://jdk8.java.net/download.html
## then add the following to your ~/.profile and source
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7)
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_HOME=$JAVA_7_HOME
## Command line alias so we can switch to java6 or Java7
@newhavengill
newhavengill / rails-log
Created August 20, 2013 00:59
rails error. who is calling postgres? who?
$ bundle exec rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/gill/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.4/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError)
from /Users/gill/.rvm/gems/ruby-1.9.2-p320@global/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:7:in `<top (required)>'
from /Users/gill/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/gill/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
@newhavengill
newhavengill / TripleDESTest.java
Created May 2, 2012 03:47
Simple TripleDES Encrypt/Decrypt Test
import java.security.MessageDigest;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
/**
* Simple TripleDES Encrypt/Decrypt Test