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
| #include <EEPROM.h> | |
| #include <EasyButton.h> | |
| #include <LiquidCrystal.h> | |
| #include <dht.h> | |
| // board led | |
| const int board_led = 13; | |
| // eeprom value | |
| byte eeprom_value; |
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 | |
| // 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); |
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 | |
| // | |
| // Enrico Simonetti | |
| // enricosimonetti.com | |
| // | |
| // 2016-05-08 on Sugar 7.7.0.0 | |
| // file: custom/data/acl/SugarACLLock.php | |
| // | |
| // ACL to lock record in certain conditions. Always allow admin users and specific user ids |
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 | |
| // | |
| // Enrico Simonetti | |
| // enricosimonetti.com | |
| // | |
| // 2015-09-10 on Sugar 7.6.0.0 | |
| // filename: custom/data/acl/SugarACLReadOnly.php | |
| // | |
| // Read only ACL except for Admin users and specific user ids |
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 | |
| // Enrico Simonetti | |
| // enricosimonetti.com | |
| // settings | |
| $set = [ | |
| 'email-admin' => 'my@email.com', | |
| 'email-user' => 'my-second@email.com', | |
| 'tzone' => 'Australia/Sydney', |
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 | |
| // Enrico Simonetti | |
| // enricosimonetti.com | |
| // | |
| // 2018-09-20 on Sugar 8.0.0 | |
| // | |
| // CLI script to optimize Sugar mysql tables | |
| ini_set('memory_limit', '64M'); |
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 | |
| $config_override = []; | |
| $config_override['passwordsetting']['minpwdlength'] = 1; | |
| $config_override['passwordsetting']['oneupper'] = 0; | |
| $config_override['passwordsetting']['onelower'] = 0; | |
| $config_override['passwordsetting']['onenumber'] = 0; | |
| $config_override['passwordsetting']['onespecial'] = 0; | |
| $config_override['passwordsetting']['SystemGeneratedPasswordON'] = 0; | |
| $config_override['passwordsetting']['forgotpasswordON'] = 0; | |
| $config_override['moduleInstaller']['packageScan'] = 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
| <?php | |
| $sugar_config['metrics_enabled'] = 1; | |
| $sugar_config['metric_providers']['SugarMetric_Provider_Newrelic'] = 'include/SugarMetric/Provider/Newrelic.php'; | |
| $sugar_config['metric_settings']['SugarMetric_Provider_Newrelic']['applicationname'] = 'Sugar'; |
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 | |
| // example dropdowns.csv content | |
| // "ddname","key1","value1" | |
| // "ddname","key2","value2" | |
| $fileName = 'dropdowns.csv'; | |
| if (file_exists($fileName)) { | |
| $file = fopen($fileName, 'r'); | |
| $dd = []; |
NewerOlder