This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!$this->validator->validate(Input::all())) | |
{ | |
return Redirect::back()->withErrors($this->validator->errors())->withInput(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HelloWorld": { | |
"PluginDescription": "Piwik 2.0 Hello World Tutorial", | |
"submenu": "Overview" | |
} | |
} |
NewerOlder