Skip to content

Instantly share code, notes, and snippets.

View bickart's full-sized avatar

Jeff Bickart bickart

View GitHub Profile
@bickart
bickart / repair.php
Created April 26, 2013 15:29
How to perform a SugarCRM Quick Repair and Rebuild from the line
#!/usr/bin/php
<?php
/*
* Copyright 2013
* Jeff Bickart
* @bickart
* jeff @ neposystems.com
*/
@bickart
bickart / .gitignore
Created March 25, 2022 16:51
Sugar 12 git ignore
/*.log
/*.php
/*.json
/*.swp
/*.xml
**/.DS_Store
/LICENSE
/pdf.php
/image.php
/install/
@bickart
bickart / tincheck.php
Created August 1, 2012 20:44
Example Code to access tincheck.com's webservice
<?php
/**
* August 1, 2012
*
* Jeff Bickart
* Twitter: @bickart
* Blog: http://sugarcrm-dev.blogspot.com/
*
* The following is a example of usage of the tincheck.com web-service to test the ValidateTinName
@bickart
bickart / update_via_csv.php
Last active January 28, 2016 13:20
Place this file and your CSV file into the root of your SugarCRM install and you can update data in SugarCRM from a CSV on the command line
<?php
//Use an unlimited amount of memory, we probably shouldn't do this but that is how I roll
ini_set('memory_limit', '-1');
//Our program allows us to skip over rows in the data file and only load a sub-set of rows
if (count($argv) < 3 || ! is_numeric($argv[1]) || ! is_numeric($argv[2])) {
echo "Usage php -f $argv[0] skip max" . PHP_EOL;
echo " skip - number of rows to skip when processing" . PHP_EOL;
echo " max - number of rows to import when processing" . PHP_EOL;
@bickart
bickart / followme.html
Created April 10, 2013 20:14
SugarCON
<img src="https://nepo.box.com/shared/static/d3wqfhyoaizu8146vlyc.png" />
<h3>Twitter: @bickart</h3>
<h3>Twitter: @bickart</h3>
@bickart
bickart / custom_index.php
Last active October 9, 2015 11:58
SugarCRM Extension to added a Custom Index
<?php
/*
* Created on Aug 27, 2012
*
* Jeff Bickart
* @bickart
* NEPO Systems, LLC
*
* custom/Extension/application/Ext/TableDictionary/custom_indexes.php
*/
@bickart
bickart / nepoUtils.php
Created August 16, 2012 15:05
Subversion post-commit add a note to SugarCRM
<?php
/**
* Utility class that use SugarCRM Rest to create a Note and associate to a Case
*/
class nepoUtils {
const HOME = 'http://<yourcrm>/service/v4_1/rest.php';
protected $curl;
protected $session;