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
nginx: | |
image: wodby/nginx:$NGINX_TAG | |
container_name: "${PROJECT_NAME}_nginx" | |
depends_on: | |
- php | |
environment: | |
NGINX_STATIC_OPEN_FILE_CACHE: "off" | |
NGINX_ERROR_LOG_LEVEL: debug | |
NGINX_BACKEND_HOST: php | |
NGINX_SERVER_ROOT: /var/www/html/web |
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
nginx: | |
image: wodby/nginx:$NGINX_TAG | |
container_name: "${PROJECT_NAME}_nginx" | |
depends_on: | |
- php | |
environment: | |
NGINX_STATIC_OPEN_FILE_CACHE: "off" | |
NGINX_ERROR_LOG_LEVEL: debug | |
NGINX_BACKEND_HOST: php | |
NGINX_SERVER_ROOT: /var/www/html/web |
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
<div class="ribbon-container"> | |
<h2 class="title ribbon"> | |
<div class="ribbon-content">{{ model.title }}</div> | |
</h2> | |
</div> |
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
<template> | |
<div | |
v-observe-visibility="{ | |
callback: visibilityChanged, | |
}" | |
class="digit-item" | |
>test {{digit}}</div> | |
</template> | |
<script lang="ts"> |
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
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
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 CUSTOM_BARRIO=$1 # change this to your custom theme_name | |
cp -r ../contrib/bootstrap_sass $CUSTOM_BARRIO | |
cd $CUSTOM_BARRIO | |
for file in *bootstrap_sass.*; do mv $file ${file//bootstrap_sass/$CUSTOM_BARRIO}; done | |
for file in config/*/*bootstrap_sass.*; do mv $file ${file//bootstrap_sass/$CUSTOM_BARRIO}; done | |
grep -Rl bootstrap_sass .|xargs sed -i'' -e "s/bootstrap_sass/$CUSTOM_BARRIO/" | |
grep -Rl bootstrap_barrio .|xargs sed -i'' -e "s/bootstrap_barrio/$CUSTOM_BARRIO/" |
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
"drupal/block_styles": { | |
"Notice: Undefined index after placing block": "https://www.drupal.org/files/issues/2642010-7-fix-block-notice.patch", | |
"Notice: Undefined index: #id in block_styles_theme_suggestions_block_alter() ": "https://www.drupal.org/files/issues/notice_undefined-2725167-3.patch", | |
"array flip issue": "https://www.drupal.org/files/issues/2018-06-23/2890458_fix_array_flip.patch" | |
}, | |
"drupal/ds": { | |
"Warning: Invalid argument supplied for foreach() in /ds/ds.module on line 504": "https://www.drupal.org/files/issues/2018-04-21/invalid_argument_in_ds_module-2904575-7.patch" | |
}, | |
"drupal/owlcarousel": { | |
"Theme hook owl not found (solved)": "https://www.drupal.org/files/issues/drupal-8_owlcarousel_theme_hook_owl_not_found_2917939-2.patch" |
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
# /etc/systemd/system/drone.service | |
[Unit] | |
Description=Drone server | |
After=docker.service nginx.service | |
[Service] | |
Restart=always | |
ExecStart=/usr/local/bin/docker-compose -f /etc/drone/docker-compose.yml up | |
ExecStop=/usr/local/bin/docker-compose -f /etc/drone/docker-compose.yml stop |
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
[ | |
{ | |
"key": "shift+numpad2", | |
"command": "cursorDownSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+numpad1", | |
"command": "cursorEndSelect", | |
"when": "textInputFocus" |
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 | |
/** | |
* Убирает из массива элемент по его значению | |
* @param $arr | |
* @param $value | |
*/ | |
function unset_by_value(&$arr, $value){ | |
if (($key = array_search($value, $arr)) !== false) { | |
unset($arr[$key]); | |
} |
NewerOlder