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
https://www.google.com/settings/u/0/security/lesssecureapps |
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
#!/bin/bash | |
#Script to take autodump of directories | |
#Written by Ajay Kumar | |
#Dated: 07 July 2016 | |
BACKUPDIR="/home/restore/CRM_Backup/" | |
TODAY=`date +"%A"` | |
#enter directories to be backedup here | |
FILES=( '/var/www/html/sugarhome' ) |
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
#!/bin/bash | |
#Script to take automatic db dump | |
#Written by Ajay Kumar | |
#Dated 07 July 2016 | |
DBUSERNAME="root" | |
DBPASS="*******" | |
BACKUPDIR="/home/restore/" | |
TODAY=`date +"%A"` |
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/sh | |
echo 3 > /proc/sys/vm/drop_caches | |
//Execute this file in cron with difference (based on RAM size) | |
In terminal | |
>crontab -e | |
//then add the below with correct path,we have given 45 mins as diff |
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
({ | |
/** | |
* Purpose:Limiting the subpanel records based on parent module | |
* Here we are limiting contacts module records based on parent module(Opporunities,Accounts and other module) * | |
* Path : sugar/custom/modules/contacts/clients/base/views/subpanel-list/subpanel-list.js | |
* Written by: Ajay Kumar | |
* Dated: 31 May 2016 | |
*/ | |
extendsFrom:'RecordlistView', | |
fallbackFieldTemplate: 'list', |
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
({ | |
extendsFrom: 'RecordView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.model.addValidationTask('check_email', _.bind(this._doValidateEmail, this)); | |
}, | |
_doValidateEmail: function(fields, errors, callback) { | |
console.log("test function"); | |
_.each(this.model.get('email'), function(emailObject) { | |
if (emailObject.primary_address) { //check if primary |
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
({ | |
extendsFrom:'RecordlistView', | |
initialize:function(options){ | |
this._super('initialize',[options]); | |
this.context.on('list:updatecurrentsize:fire',this.mass_update_currentsize,this); | |
}, | |
/** | |
* Function to mass update the current size | |
* for all selected accounts | |
* Written by: Ajay Kumar |
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
var emailAddress="[email protected]"; | |
var self = this, | |
data = { | |
results: [], | |
}, | |
options = {}, | |
callbacks = {}, | |
url; | |
// add the search term to the URL params | |
options.q = emailAddress; |
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 | |
/* | |
* Enabling Audit for module | |
* Ajay Kumar | |
* Path : /crm//custom/Extension/modules/Project/Ext/Vardefs/enableAudit.php | |
*/ | |
$dictionary['Project']['audited'] = true; | |
?> |
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
app.alert.show('success', { | |
level : 'success', | |
messages : 'Successful', | |
autoClose : true, | |
autoCloseDelay : 10000, | |
}); |
NewerOlder