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 | |
| if (($modx->event->name == 'OnDocFormSave' && $mode == 'new') || ($modx->event->name == 'OnDocFormRender' && $mode == 'upd')) { | |
| switch ($resource->get('template')) { | |
| //ID шаблонов страниц | |
| case 1: | |
| case 2: | |
| case 3: | |
| //ID источника файлов | |
| $source = 1; | |
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
| [ | |
| { | |
| "caption": "Заголовок", | |
| "fields": [ | |
| { | |
| "field": "slide", | |
| "caption": "Картинка", | |
| "inputTVtype": "image", | |
| "sourceFrom": "migx" | |
| } |
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
| [ | |
| { | |
| "renderer": "this.renderImage", | |
| "sourceFrom": "migx", | |
| "header": "Картинка", | |
| "dataIndex": "slide" | |
| }, | |
| { | |
| "header": "Описание", | |
| "dataIndex": "alt_text" |
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 | |
| $input_without_spaces = trim($input); | |
| $pattern = '/^(\d)(\d{3})(\d{3})(\d{2})(\d{2})$/'; | |
| $replacement = '8 (\2) \3-\4-\5'; | |
| return $output = preg_replace($pattern, $replacement, $input_without_spaces); |
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
| Запускаем консоль Shift+F10 | |
| Запускаем DISKPART | |
| list disk | |
| select disk | |
| clean | |
| convert mbr/gpt | |
| exit |
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
| slmgr /upk |
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
| 1)Включить службу (автоматически с отложенным стартом) - Function Discovery Resource Publication (Публикация ресурсов обнаружения функции) | |
| 2)Включение и отключение компонентов windows - включить SMBv1 и клиент и сервер | |
| 3)Сделать полный сброс сети | |
| 4)Перезагрузить комп |
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
| //в консоли пишем | |
| wmic diskdrive get model |
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://github.com/caouecs/Laravel-lang | |
| //Репозиторий для создания фабрик классов - https://github.com/mpociot/laravel-test-factory-helper | |
| //Репозиторий для стартовых скриптов проекта - https://github.com/mad-web/laravel-initializer | |
| //Репозиторий для генерации кода из yaml файла - https://github.com/laravel-shift/blueprint | |
| //Команды для ввода в console проекта | |
| composer require --dev atehnix/laravel-stubs barryvdh/laravel-ide-helper doctrine/dbal barryvdh/laravel-debugbar beyondcode/laravel-dump-server | |
| php artisan vendor:publish --provider="ATehnix\LaravelStubs\Providers\ConsoleSupportServiceProvider" | |
| php artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config | |
| php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider" |