Skip to content

Instantly share code, notes, and snippets.

View ashramsey's full-sized avatar

Ashley Ramsey ashramsey

View GitHub Profile
AshMBP: ash$ cap deploy
/Users/ash/.rvm/lib/rvm/capistrano.rb:5:in `<top (required)>': RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError)
from /Users/ash/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/ash/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/ash/.rvm/gems/ruby-1.9.2-p180/gems/capistrano-2.9.0/lib/capistrano/configuration/loading.rb:152:in `require'
from ./config/deploy.rb:2:in `load'
from /Users/ash/.rvm/gems/ruby-1.9.2-p180/gems/capistrano-2.9.0/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/ash/.rvm/gems/ruby-1.9.2-p180/gems/capistrano-2.9.0/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/ash/.rvm/gems/ruby-1.9.2-p180/gems/capistrano-2.9.0/lib/cap
#!/usr/bin/env bash
sudo su
echo -e "Installing development dependencies and essential tools..."
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
echo -e "Installing Ruby 1.9.3-p448"
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
tar -xvzf ruby-1.9.3-p448.tar.gz
@ashramsey
ashramsey / gist:6445826
Created September 5, 2013 03:42
Creates a connection to the CRM, and retrieves all account records (Organisations) from the CRM. I'm guessing, one of the columns is no longer valid??
public List<Entity> GetOrganizations()
{
List<Entity> accounts = null;
// Establish a connection to the organization web service using CrmConnection.
Microsoft.Xrm.Client.CrmConnection connection = CrmConnection.Parse(this.ConnectionString);
using (_orgService = new OrganizationService(connection))
{
// Retrieve the several attributes from the new account.
QueryExpression query = new QueryExpression();