Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Pinegar spinegar

View GitHub Profile
@spinegar
spinegar / Tenfold-CTD-basic.html
Created May 9, 2019
Tenfold Click to Dial Markup
View Tenfold-CTD-basic.html
<!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
Tenfold Click to Dial Markup with Smart Match
View Tenfold-ctd-smart-match.html
<!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>
View gist:6709b2f63c131e29ff7ae56198c94e1f
### 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 Aug 20, 2014
Index ElasticSearch in Sugar 7 via CLI
View Index ElasticSearch from CLI
$ php silentFTSIndex.php
@spinegar
spinegar / SugarElasticSearchIndex.php
Created Aug 19, 2014
A script to index ElasticSearch after performing Sugar database work.
View SugarElasticSearchIndex.php
<?php
require('vendor/autoload.php');
$sugar = new \Spinegar\Sugar7Wrapper\Rest();
$sugar->setUrl('https://sugar/rest/v10/')
->setUsername('admin')
->setPassword('secretpassword')
->connect();
View Rest.php
<?php namespace Sugar\Api;
use Guzzle\Common\Event;
use Guzzle\Http\Client;
use Guzzle\Http\Query;
/**
* SugarCRM 7 REST API Class
*
View iso_array.php
<?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 Dec 31, 2015 — forked from rajraj/es.sh
Install Elasticsearch on CentOS 6.4
View es.sh
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
View es.sh
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
View gist:7756205
if(!$this->validator->validate(Input::all()))
{
return Redirect::back()->withErrors($this->validator->errors())->withInput();
}