Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
 - Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
 
Getting started:
Related tutorials:
| #!/bin/bash -e | |
| # IMPORTANT. My phpstom installation exists on /opt/phpstorm. | |
| # IMPORTANT. Run with sudo! | |
| # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program | |
| echo -n "Please enter the PhpStorm download url (eg https://download-cf.jetbrains.com/webide/PhpStorm-2016.3.tar.gz): " | |
| read url | |
| # Download file from url | |
| echo "Downloading PhpStorm to ~/Desktop" | 
| ssh -v -l <user-name> -p <port> <host-to-connect> | |
| //Example: | |
| ssh -v -l root -p 22 192.168.1.1 | 
| Також в D7 з'явився зручний доступ до керованого кешу, об'єкт для управління кешем можна отримати з об'єкта програми: | |
| <?php | |
| $cache = \Bitrix\Main\Application::getInstance()->getManagedCache(); | |
| ?> | |
| $cache є об'єктом \Bitrix\Main\Data\ManagedCache. | |
| Приклад використання: | |
| <?php | |
| if ($cache->read($cacheTtl, $cacheId)) { | 
| <? | |
| array( | |
| "CONDITION" => "#^/catalog/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/#", | |
| "RULE" => "SECTION_CODE=$1&ELEMENT_CODE=$2&SKU_CODE=$3", | |
| "ID" => "bitrix:catalog.element", | |
| "PATH" => "/catalog/element_sku.php", | |
| ), | |
| // with get params | |
| array( | |
| "CONDITION" => "#^/([a-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/((\\?)*([\\.A-Za-z0-9-=])*)$#", | 
| du -sh * -подивитись розмір всіх файлів та тек | |
| ls -ltr - подивитись списокфайлів та тек із дадатою зміни | |
| ssh -v -l <user_root> -p 22 <ip ххх.ххх.ххх.ххх> - авторизація на SSH через консоль лінкус | 
| <?php | |
| require ('lib/phpQuery.php'); // include phpQuery library | |
| class ParseImg { | |
| private $domen ='http://www.domen.com'; | |
| // get img by html | |
| public function parseImg ($html){ | |
| $document = phpQuery::newDocument($html); | |
| $ImgData=array(); | 
| <?php | |
| require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); // include bitrix prolog (clasess) | |
| define("STOP_STATISTICS", true); // disable statistic | |
| CModule::IncludeModule("iblock"); | |
| global $DB; | |
| $LastID=0; // start ID | |
| $obRes = Bitrix\Main\FileTable::GetList(array( | 
| // init.php | |
| <?php | |
| CModule::AddAutoloadClasses( | |
| '', // no set module | |
| array( | |
| 'COrderStatusChange' => '/local/php_interface/include/order_status.php', | |
| ) | |
| ); | |
| \Bitrix\Main\EventManager::getInstance()->addEventHandler( | 
| <? | |
| $entity_data_class= Worker::GetEntityDataClass(Settings::getParam('GroupersData'));// обгортка на отримання $entity->getDataClass() | |
| $entity_data_class2 =(string) Worker::GetEntityDataClass(Settings::getParam('GroupersTitle')); | |
| // обгортка на entity getList | |
| $rsData= Worker::getListEntity($entity_data_class, | |
| array( | |
| 'runtime' => array( | |
| 'ELEMENT' => array( |