This file contains hidden or 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
# Install Guide for Sugar on CentOS |
This file contains hidden or 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
# Create Note | |
set_entry: Request: | |
{ | |
"session": "eubisbbcntp13gcvmq9nlcess1", | |
"module_name": "Notes", | |
"name_value_list": { | |
"name":{"name":"name","value":"A Test Note"}, | |
"team_count":{"name":"team_count","value":1}, | |
"team_name":{"name":"team_name","value":"Global"} | |
} |
This file contains hidden or 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
# Make sure we're using a compatible java | |
yum remove java | |
yum install java-1.6.0-openjdk wget | |
# Install Jenkins | |
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | |
sudo yum install jenkins | |
# Enable Jenkins at boot, and start it up |
This file contains hidden or 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
# Disable SELinux | |
echo 0 > /selinux/enforce | |
perl -pi -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | |
# Install required packages | |
yum install pdksh compat-libstdc++-33 compat-libstdc++-33.i686 libaio libaio.i686 \ | |
pam-1.1.1-17.el6.x86_64 pam-1.1.1-17.el6.i686 nfs-utils openssh-clients \ | |
numactl | |
# Update Kernel Parameters (http://ibm.co/1czEKb4) |
This file contains hidden or 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
#! /usr/bin/env php | |
<?php | |
# Stuff we have to do | |
if(!defined('sugarEntry'))define('sugarEntry', true); | |
function usage() { | |
global $argv; | |
return "\n" . $argv[0] . " <path to sugar>\n"; | |
} |
This file contains hidden or 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
// custom/include/language/en_us.lang.php | |
$GLOBALS['app_list_strings']['sales_stage_dom']=array ( | |
'Prospecting' => 'Prospecting', | |
'Qualification' => 'Qualification', | |
'Needs Analysis' => 'Needs Analysis', | |
'Value Proposition' => 'Value Proposition', | |
'Id. Decision Makers' => 'Id. Decision Makers', | |
'Perception Analysis' => 'Perception Analysis', | |
'Proposal/Price Quote' => 'Proposal/Price Quote', | |
'Negotiation/Review' => 'Negotiation/Review', |
This file contains hidden or 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 | |
// Put this in: custom/modules/Accounts/Layoutdefs/layoutdefs.ext.php | |
global $current_user; | |
$edition = $current_user->edition_c; | |
if ( $edition == "Basic" ) { | |
unset($layout_defs['Accounts']['subpanel_setup']['documents']); | |
unset($layout_defs['Accounts']['subpanel_setup']['quotes']); | |
} |
This file contains hidden or 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
// Add user to Standard Role | |
set_relationship: Request: | |
{ | |
"session": "ok01qfmdj0fihe5mlbddjsbj61", | |
"module_name": "ACLRoles", | |
"module_id": "323ce5f6-b090-8cbd-e9c1-518ab8951821", // Role ID | |
"link_field_name": "users", | |
"related_ids": ["1af1e378-9126-ffa9-a026-518a9bdd6177"], // User ID | |
"name_value_list": [], | |
"delete": 0 |
This file contains hidden or 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
ConnectionsCell01 | |
ConnectionsCellManager01 | |
ConnectionsNode01 | |
ConnectionsNode02 | |
AdminConfig.list('Server') | |
dmgr( | |
cells/ip-10-172-50-218Cell01/ | |
nodes/ConnectionsCellManager01/ | |
servers/dmgr|server.xml#Server_1 |
This file contains hidden or 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 | |
// Server in the this format: <computer>\<instance name> or | |
// <server>,<port> when using a non default port number | |
$server = 'localhost'; | |
$user = 'sa'; | |
$pass = 'password'; | |
// Connect to MSSQL | |
$link = mssql_connect($server, $user, $pass); |