Skip to content

Instantly share code, notes, and snippets.

View spinegar's full-sized avatar

Sean Pinegar spinegar

View GitHub Profile
@spinegar
spinegar / gist:6544378
Last active April 29, 2020 22:43
Using SugarCRM's New RESTful API With Guzzle
<?php
use Guzzle\Common\Event;
use Guzzle\Http\Client;
// specify the REST web service to interact with
$url = 'http://sugarinstance/rest/v10';
// And admin username/password
$username = 'username';
$password = 'password';
@spinegar
spinegar / Joe_______'s SugarCRM Cheat Sheet
Last active July 30, 2019 03:32
Joe_______'s SugarCRM Cheat Sheet
Sugarwiki
Adding a Field to the Modules Subpanels „ Popup Search “ definitions
Code way:
1. Use metadata/popupdefs.php (custom folder, if there is none copy original)
2. Seek section searchdefs' => array(…)
3. Add field to searchdefs
Or Studio way:
Admin > Studio > Contacts > Layouts > PopupView > Popup Search
Subpanel Query Change with custom fields
@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:
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
@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
if(!$this->validator->validate(Input::all()))
{
return Redirect::back()->withErrors($this->validator->errors())->withInput();
}
@spinegar
spinegar / Controller.php
Last active December 28, 2015 15:19
Piwik 2.0 Hello World Tutorial Controller
<?php
/**
* HelloWorld plugin for Piwik 2.0
*
* @author Sean Pinegar
* @link http://seanpinegar.com
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
* @package HelloWorld
@spinegar
spinegar / en.json
Last active December 28, 2015 15:19
Piwik 2.0 Hello World Tutorial - en.json
{
"HelloWorld": {
"PluginDescription": "Piwik 2.0 Hello World Tutorial",
"submenu": "Overview"
}
}