This file contains 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
version: '3.5' | |
services: | |
mysql: | |
image: mysql:5.7 | |
container_name: mysql | |
volumes: | |
- './data:/var/lib/mysql' | |
ports: | |
- '3306:3306' |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script src="https://code.jquery.com/jquery-1.9.1.js"></script> | |
</head> | |
<body> | |
<p> |
This file contains 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
{%- assign product_reviews_count=0 -%} | |
{%- if product.metafields.spr.reviews -%} | |
{%- capture review_data -%}{{ product.metafields.spr.reviews }}{%- endcapture -%} | |
{%- if review_data contains '"votes"' -%} | |
{%- assign keyword = '"votes"' -%} | |
{%- else -%} | |
{%- assign keyword = '"reviewCount"' -%} | |
{%- endif -%} |
This file contains 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
#!/bin/sh | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# verify homebrew installation | |
# TODO handle output to figure out whether to processed further | |
brew doctor | |
## setup basic packets |
This file contains 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
# Для всех Job'ов используем один образ | |
image: tetraweb/php:7.0 | |
# Устанавливаем переменные для работы CI | |
variables: | |
CHECK_FILES: ./src/ | |
CHECK_EXCLUDE_DIRS: ./vendor/* | |
CHECK_STANDARDS: PSR1,PSR2 | |
DEPLOY_USER: root | |
DEPLOY_SERVER: infoservice.pro |
This file contains 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
version: '2' | |
services: | |
gitlab-runner: | |
image: gitlab/gitlab-runner:latest | |
volumes: | |
- '/var/run/docker.sock:/var/run/docker.sock' | |
- '.ssh:/root/.ssh' | |
- './etc/gitlab-runner:/etc/gitlab-runner' | |
container_name: gitlab-runner |
This file contains 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
#!/bin/bash | |
YELLOW='\033[0;33m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
# Install OpenSSH Server and Ngrok tool | |
printf "${GREEN}Install OpenSSH Server${NC}\n" | |
yum install -y openssh-server | |
# Generate certs |
This file contains 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 ($) { | |
var selectors = { | |
resizeLeftMenuBtn: '.menu-resize-btn', | |
resizeLeftMenuWrapper: '.menu-items-block', | |
horizonalMainMenu: '.page-header .main-buttons', | |
header: '#header', | |
rightImBar: '#bx-im-bar', | |
leftMenuClass: '.im-bar-mode', | |
collapsedMenuClass: 'menu-collapsed-mode' | |
}; |
This file contains 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 | |
Cmodule::IncludeModule('extanet'); | |
// Константы | |
define('EXTRANET_GROUP_ID', 17); // ID группы экстранет куда приглашаем пользователя | |
define('EXTRANET_INVITOR_ID', 481); // ID пользователя от которого будет выполнено приглашение в группу | |
// Получим SITE ID нужен в дальнейшем | |
$siteId = CSite::GetDefSite(); |
This file contains 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
set $http 0; | |
if ($request_uri = '/robots.txt') { | |
set $http 1; | |
} | |
if ($request_uri = '/sitemap.xml') { | |
set $http 1; | |
} |