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 | |
| /** | |
| * Images resize on the fly | |
| **/ | |
| $arParams['THUMB']['width'] = 48; | |
| $arParams['THUMB']['height'] = 48; | |
| $arParams['PREVIEW_PICTURE']['height'] = 275; | |
| $arParams['PREVIEW_PICTURE']['width'] = 350; | |
| $arFilter = array("name" => "sharpen", "precision" => 90); | 
  
    
      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 | |
| define('STOP_STATISTICS', true); | |
| define('BX_SECURITY_SHOW_MESSAGE', true); | |
| define("NO_KEEP_STATISTIC", true); | |
| define("NO_AGENT_STATISTIC", true); | |
| define("NOT_CHECK_PERMISSIONS", true); | |
| require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); | |
| use Bitrix\Main\Application; | 
  
    
      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
    
  
  
    
  | http://www.softpanorama.org/OFM/MC/mc_tips.shtml | |
| For directories history and whenever it is present Alt-y moves to the previous directory in the history, equivalent to clicking the < with the mouse. | |
| [Alt-o] open in other panel | |
| [Alt-u] moves to the next directory in the history, equivalent to clicking the > with the mouse. | |
| [Alt-Shift-h, Alt-H] displays the directory history, equivalent to depressing the 'v' with the mouse. | |
| [Alt-p, Alt-n] use these keys to browse through the command history. Alt-p takes you to the last entry, Alt-n takes you to the next one. | |
| [Alt-h] displays the history for the current input line. | 
  
    
      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
    
  
  
    
  | BX.UI.Dialogs.MessageBox.confirm("Message"); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", () => {}); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Продолжить"); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Продолжить", () => {}); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", "Title"); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}); | |
| BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}, "Продолжить", () => {}); | |
| //https://dev.1c-bitrix.ru/api_d7/bitrix/ui/dialogs/dialogs.php | 
  
    
      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
    
  
  
    
  | <? | |
| $dbEvent = CCrmEvent::GetList([], ['ENTITY_TYPE' => 'CONTACT', 'ENTITY_ID' => 5896], 500); | |
| echo '<pre>'; var_dump($dbEvent->SelectedRowsCount()); echo '</pre>'; | |
| while ($arEvent = $dbEvent->Fetch()){ | |
| $obEvent = new CCrmEvent(); | |
| echo '<pre>'; var_dump($arEvent['DATE_CREATE'] . ' ' . $arEvent['EVENT_NAME']); echo '</pre>'; | |
| $obEvent->Delete($arEvent['ID']); | |
| } | 
  
    
      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
    
  
  
    
  | wget http://repos.1c-bitrix.ru/yum/bitrix-env.sh | |
| chmod +x bitrix-env.sh | |
| ./bitrix-env.sh | |
| #centos 7 | |
| wget http://repos.1c-bitrix.ru/yum/bitrix-env-crm.sh && chmod +x bitrix-env-crm.sh && ./bitrix-env-crm.sh | |
| #centos 9 stream | |
| wget https://repo.bitrix.info/dnf/bitrix-env-9.sh && chmod +x bitrix-env-9.sh && ./bitrix-env-9.sh | 
  
    
      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
    
  
  
    
  | echo -e "test message" | /usr/bin/msmtp --debug -t -i mail@mail.ru | |
| printf "From: mail@localhost.ru\nSubject: test\ntest message" | /usr/bin/msmtp --debug -t -i mail@mail.ru | 
  
    
      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
    
  
  
    
  | curl https://api.ipify.org/ // IP | |
| curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/gateway // gw do | |
| curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/address // ip do | 
  
    
      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
    
  
  
    
  | <? | |
| require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
| $APPLICATION->SetTitle("Тестирование"); | |
| CModule::IncludeModule('gpw.testing'); | |
| CModule::IncludeModule('im'); | |
| CModule::IncludeModule('bizproc'); | |
| $iTemplateID = XXX; | 
  
    
      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
    
  
  
    
  | <? | |
| //UF MANAGER | |
| //GET | |
| //All fields for MY_SUBSCRIPTION object | |
| $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields( | |
| "MY_SUBSCRIPTION", | |
| $arResult["ID"], | |
| LANGUAGE_ID | |
| ); |