Skip to content

Instantly share code, notes, and snippets.

Jeff Bickart bickart

Block or report user

Report or block bickart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bickart
bickart / repair.php
Created Jun 27, 2019 — forked from esimonetti/repair.php
Sugar CLI Repair - Instance as script argument
View repair.php
<?php
// Enrico Simonetti
// enricosimonetti.com
//
// 2017-11-01 on Sugar 7.9.2.0
function usage($error = '') {
if (!empty($error)) print(PHP_EOL . 'Error: ' . $error . PHP_EOL);
print(' php ' . __FILE__ . ' --instance /full/path' . PHP_EOL);
@bickart
bickart / update_via_csv.php
Last active Jan 28, 2016
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
View update_via_csv.php
<?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 / repair.php
Created Apr 26, 2013
How to perform a SugarCRM Quick Repair and Rebuild from the line
View repair.php
#!/usr/bin/php
<?php
/*
* Copyright 2013
* Jeff Bickart
* @bickart
* jeff @ neposystems.com
*/
View followme.html
<img src="https://nepo.box.com/shared/static/d3wqfhyoaizu8146vlyc.png" />
<h3>Twitter: @bickart</h3>
<h3>Twitter: @bickart</h3>
View dashlet.hbs
<h3>NEPO {{getFieldValue model "name"}}</h3>
Was here
@bickart
bickart / custom_index.php
Last active Oct 9, 2015
SugarCRM Extension to added a Custom Index
View custom_index.php
<?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 Aug 16, 2012
Subversion post-commit add a note to SugarCRM
View nepoUtils.php
<?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;
@bickart
bickart / tincheck.php
Created Aug 1, 2012
Example Code to access tincheck.com's webservice
View tincheck.php
<?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
You can’t perform that action at this time.