Skip to content

Instantly share code, notes, and snippets.

Avatar

John Hoffmann jhoffmann

View GitHub Profile
View default.txt
Started trying to rebase:
150 git upstream
151 co feature/sla_tracking.IAPPS-8808
152 git up
153 git ri upstream/develop
154 git mergetool
There were 7 commits to merge, this commit had a conflict, so I resolved it.
View default.md

Juul by Pax

Pros:

- compact
- easy to charge, magnetic charger
- easy pod swap
- all day battery life
- excellent battery usage indicator (green/yellow/red)

Cons:

@jhoffmann
jhoffmann / SugarCronFilteredJobs.php
Last active Nov 7, 2019
Both files go into custom/include/SugarQueue, then run a Repair to regenerate cache/file_map.php and you're good to go.
View SugarCronFilteredJobs.php
<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
require_once 'include/SugarQueue/SugarCronJobs.php';
require_once 'custom/include/SugarQueue/SugarJobFilteredQueue.php';
// Sample configuration:
//
View default.txt
lstat("/var/www/sugarinternal/sugarinternal.sugarondemand.com/custom/docusign/dsapi/library/src/custom/modules/Connectors/connectors/sources/ext/soap/marketo/vardefs.php", 0x7fffce2926b0) = -1 ENOENT (No such file or directory)
time(NULL) = 1489095024
open("/var/www/sugarinternal/sugarinternal.sugarondemand.com/custom/modules/Connectors/connectors/sources/ext/soap/marketo/vardefs.php", O_RDONLY) = 13
fstat(13, {st_mode=S_IFREG|0660, st_size=125041, ...}) = 0
fstat(13, {st_mode=S_IFREG|0660, st_size=125041, ...}) = 0
fstat(13, {st_mode=S_IFREG|0660, st_size=125041, ...}) = 0
mmap(NULL, 125041, PROT_READ, MAP_SHARED, 13, 0) = 0x2b156d2ad000
munmap(0x2b156d2ad000, 125041) = 0
close(13) = 0
time(NULL) = 1489095024
View default.txt
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] ------------------------------ _ppLogger() output start -----------------------------
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] MetaDataCache::set is updating the meta_hash_base field for some reason.
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] /var/www/sugarinternal/sugarinternal.sugarondemand.com/include/MetaDataManager/MetaDataCache.php(42)
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] /var/www/sugarinternal/sugarinternal.sugarondemand.com/include/MetaDataManager/MetaDataManager.php(3320)
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] /var/www/sugarinternal/sugarinternal.sugarondemand.com/include/MetaDataManager/MetaDataManager.php(1655)
Wed Jan 18 13:29:07 2017 [22754][e9d7cbf1-3de0-a8d5-85ab-54f756a3f271][FATAL] /var/www/sugarinternal/sugarinternal.sugarondemand.com/include/MetaDataManager/MetaDat
View default.diff
diff --git i/custom/modules/Connectors/connectors/sources/ext/soap/marketo/mapping.php w/custom/modules/Connectors/connectors/sources/ext/soap/marketo/mapping.php
index 0c6b1f11..90c6fcfa 100644
--- i/custom/modules/Connectors/connectors/sources/ext/soap/marketo/mapping.php
+++ w/custom/modules/Connectors/connectors/sources/ext/soap/marketo/mapping.php
@@ -1,5 +1,5 @@
<?php
-// created: 2016-02-12 14:58:21
+// created: 2016-08-18 11:07:40
$mapping = array (
'beans' =>
View default.diff
diff --git i/custom/modules/Opportunities/clients/base/views/record/record.js w/custom/modules/Opportunities/clients/base/views/record/record.js
index 9175e771..b75dfeeb 100644
--- i/custom/modules/Opportunities/clients/base/views/record/record.js
+++ w/custom/modules/Opportunities/clients/base/views/record/record.js
@@ -24,6 +24,8 @@
key: -1
},
initialize: function(options) {
+ this.plugins = _.union(this.plugins, ['LinkedModel']);
+
View default.txt
--- original/httpd.conf 2016-02-20 20:06:33.000000000 -0800
+++ httpd.conf 2015-12-16 15:25:02.000000000 -0800
@@ -157,7 +157,7 @@
#LoadModule cgi_module libexec/apache2/mod_cgi.so
#LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
#LoadModule dav_lock_module libexec/apache2/mod_dav_lock.so
-#LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
+LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache2/mod_negotiation.so
LoadModule dir_module libexec/apache2/mod_dir.so
View default.txt
--------------
SELECT count(id) FROM opportunities WHERE deleted = @ticket_number
--------------
count(id)
166478
1 row in set
--------------
SELECT count(id) FROM accounts WHERE deleted = @ticket_number
View default.php
<?php
/**
* This allows a user to utilize ElasticSearch (FTS) query syntax when filtering records
* for a module's list view
*
* For the supported syntax, see:
* http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#_simple_query_string_syntax
*
* @link PSD-1310
* @author jwh
You can’t perform that action at this time.