Skip to content

Instantly share code, notes, and snippets.

View spinegar's full-sized avatar

Sean Pinegar spinegar

View GitHub Profile
@spinegar
spinegar / Tenfold-CTD-basic.html
Created May 9, 2019 01:53
Tenfold Click to Dial Markup
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tenfold Click to Dial Test Page</title>
</head>
<body>
<a href="tenfold://+14155991160" title="Dial with
Tenfold">+14155991160</a>
</body>
@spinegar
spinegar / Tenfold-ctd-smart-match.html
Created May 9, 2019 01:52
Tenfold Click to Dial Markup with Smart Match
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tenfold Click to Dial Test Pge</title>
</head>
<body>
<a href="tenfold://+14155991160?recordId=0031a00000KuvRQ&recordModule=Contact" title="Dial with
Tenfold">+14155991160</a>
</body>
### Keybase proof
I hereby claim:
* I am spinegar on github.
* I am seanpinegar (https://keybase.io/seanpinegar) on keybase.
* I have a public key whose fingerprint is A3FE 3F64 62C3 38D0 4005 E764 2AB7 61AF 453B ABB1
To claim this, I am signing this object:
@spinegar
spinegar / Index ElasticSearch from CLI
Created August 20, 2014 21:27
Index ElasticSearch in Sugar 7 via CLI
$ php silentFTSIndex.php
@spinegar
spinegar / SugarElasticSearchIndex.php
Created August 19, 2014 19:31
A script to index ElasticSearch after performing Sugar database work.
<?php
require('vendor/autoload.php');
$sugar = new \Spinegar\Sugar7Wrapper\Rest();
$sugar->setUrl('https://sugar/rest/v10/')
->setUsername('admin')
->setPassword('secretpassword')
->connect();
<?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
if(!$this->validator->validate(Input::all()))
{
return Redirect::back()->withErrors($this->validator->errors())->withInput();
}