Skip to content

Instantly share code, notes, and snippets.

View spinegar's full-sized avatar

Sean Pinegar spinegar

View GitHub Profile
<?php namespace Sugar\Api;
use Guzzle\Common\Event;
use Guzzle\Http\Client;
use Guzzle\Http\Query;
/**
* SugarCRM 7 REST API Class
*
<?php
$iso_array = array(
'ABW'=>'Aruba',
'AFG'=>'Afghanistan',
'AGO'=>'Angola',
'AIA'=>'Anguilla',
'ALA'=>'Åland Islands',
'ALB'=>'Albania',
'AND'=>'Andorra',
'ARE'=>'United Arab Emirates',
@spinegar
spinegar / es.sh
Last active December 31, 2015 21:09 — forked from rajraj/es.sh
Install Elasticsearch on CentOS 6.4
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.noarch.rpm
rpm -Uvh elasticsearch-0.90.10.noarch.rpm
chkconfig elasticsearch on
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb
sudo dpkg -i elasticsearch-0.90.7.deb