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
| {"lastUpload":"2020-06-06T16:33:31.985Z","extensionVersion":"v3.4.3"} |
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
| #in unix system | |
| find -maxdepth 1 -type d -printf '%f\n' | tee result.txt |
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://gist.github.com/hermanbanken/96f0ff298c162a522ddbba44cad31081 |
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
| git init . | |
| git remote add -t \* -f origin <repository-url> | |
| git checkout master |
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)Скачать официальный скрипт отключения Device Guard | |
| https://www.microsoft.com/en-us/download/details.aspx?id=53337 | |
| 2)Распаковываем архив в корень системного диска | |
| 3)Далее нужно разрешить в PowerShell выполнение сценариев (Всё запускаем от Админа) | |
| Set-ExecutionPolicy Unrestricted (жмём Y) | |
| 4)Заходим в папку со скриптом и пишем туда .\DG_Readiness_Tool_v3.6.ps1 -Disable -AutoReboot | |
| 5)Компьютер будет перезагружен и появится экран для отключения Device Guard | |
| 6)Восстанавливаем запрет на выполнение сценариев в PowerShell | |
| Set-ExecutionPolicy Restricted (жмём Y) | |
| 7)Иногда нужно ещё отключить Hyper-V role (Пишем в консоли) |
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 и HTTP2 на OpenServer | |
| И так для того, чтобы включить на локальном веб-сервере эти плюшки | |
| Нужно сделать следующее: | |
| В случае с Apache | |
| Сначала нужно подключить сам модуль mod_http2.so в конфиге сервера. | |
| Для этого ищем в OSPanel/userdata/config нужный файл, соответствующий выбранным настройкам в самой программе OpenServer (Имя файла должно заканчиваться на _server.conf). | |
| Открываем его и добавляем подключение модуля следующим образом: | |
| LoadModule http2_module modules/mod_http2.so | |
| После этого обязательно перезагружаем сервер и проверяем в настройках были приняты изменения или нет. | |
| (Кликаем по флажку – Дополнительно – Конфигурация – Выбранный в настройках веб-сервер) |
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
| DISM.exe /Online /Cleanup-image /Restorehealth | |
| sfc /scannow |
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
| export const isValidElement = element => { | |
| return element.name && (element.value || element.value === '') | |
| } | |
| export const isValidValue = element => { | |
| return (!['checkbox', 'radio'].includes(element.type) || element.checked) | |
| } | |
| export const isCheckbox = element => element.type === 'checkbox' | |
| export const isRadioButton = element => element.type === 'radio' |
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
| <table class="table table-custom table-hover"> | |
| <tbody> | |
| <tr> | |
| <td>БИК</td> | |
| <td>Банковский Идентификационный Код</td> | |
| <td>BIC (Bank Identification Code)</td> | |
| </tr> | |
| <tr> | |
| <td>ГАОУ</td> | |
| <td>Государственное Автономное Образовательное Учреждение</td> |
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 | |
| //делаем дефолтный роут | |
| Route::fallback(function(){ | |
| return response()->json(['message' => 'Not Found.'], 404); | |
| })->name('api404'); | |
| // app/Exceptions/Handler.php | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| use Illuminate\Support\Facades\Route; |