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
{ | |
"compilerOptions": { | |
"target": "es5", | |
"lib": [ | |
"dom", | |
"dom.iterable", | |
"esnext" | |
], | |
"allowJs": true, | |
"skipLibCheck": 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
composer install --ignore-platform-reqs |
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 fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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 config core.fileMode false |
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
docker run -it ubuntu bash создать сеанс интерактивной работы на подключаемом устройстве | |
docker run --name ubuntuName -it ubuntu bash запуск контернера + указываем ему имя | |
docker ps -a выводит список всех контейнеров включая остановленные | |
docker ps выводит список всех работающих контейнеров | |
docker start 'name' перезапустить контейнер name | |
docker stop 'name' остановить контейнер name | |
docker inspect 'name' информация о контейнере 'name' | |
docker logs ubuntuName список всех событий внутри контейнера ubuntuName | |
docker rm ubuntuName удалить контейнер ubuntuName |
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
<svg class="pl-arrow-bottom"> | |
<use xlink:href="#icon-arrow-bottom"></use> | |
</svg> |
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
composer require drupal/admin_toolbar drupal/token drupal/pathauto drupal/twig_field_value drupal/twig_tweak drupal/paragraphs drupal/shield drupal/field_group drupal/metatag drupal/xmlsitemap drupal/current_page_crumb drupal/svg_image |
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
function naturetour_page_attachments_alter(array &$attachments){ | |
$uuid = \Drupal\block\Entity\Block::load('usefull')->getPlugin()->getDerivativeId(); | |
$block_content = \Drupal::service('entity.repository')->loadEntityByUuid('block_content', $uuid); | |
if ($block_content) { | |
$field_value = $block_content->field_something_item->value; | |
$attachments['#attached']['drupalSettings']['naturetour']['custom']['something_item'] = $field_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
1. Откроем Vim. | |
2. Наберем :edit hello.txt и нажмем enter. | |
3. Нажмем i. | |
4. Введем текст Hello World. | |
5. Нажмем клавишу <Esc>. |
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 config user.name | |
git config user.email - Имя и email | |
git config alias.mycomm - алиасы для команд | |
git config --global core.editor - изменить редактор для редактирования файлов git | |
git check-ignore -v dir/file.txt - проверить игнорируется файлы по данному пути | |
git reset HEAD file.txt - отмена индексации файла | |
git add --force file.txt | |
git add -f file.txt - добавить в индекс файл который находится в .gitignore | |
git rm file.txt - удалить файл с проекта и добавить в индекс | |
git rm -r dir - удалить папку с проекта и добавить в индекс |
NewerOlder