docker exec -it CONTAINERID sh
/app # telnet
sh: telnet: not found
/app # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz
v3.16.4-66-g2c3dfa6d54d [https://dl-cdn.alpinelinux.org/alpine/v3.16/main]
v3.16.4-66-g2c3dfa6d54d [https://dl-cdn.alpinelinux.org/alpine/v3.16/community]
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 | |
$flatList = [ | |
[ | |
'id' => '3', | |
'parentId' => '1', | |
'parentSku' => '' | |
], | |
[ | |
'id' => '2', |
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 | |
/** | |
* Код для поиска шаблона Бп по некоторому PHP коду(активити). | |
* Выполнить код в Командной строке PHP Админки Битрикс24 | |
*/ | |
// Зададим строку для поиска | |
$findString = 'echo 1'; | |
// Подключим модуь бизнесс процессов |
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
if (this.options.jsonConfig.attributes.length > 0) { | |
var selectswatch = this.element.find('.' + this.options.classes.attributeClass + ' .' + this.options.classes.attributeOptionsWrapper); | |
$.each(selectswatch, function (index, item) { | |
var swatchOption = $(item).find('div.swatch-option').first(); | |
if (swatchOption.length && !$(item).find('div.swatch-option').hasClass('selected')) { | |
swatchOption.trigger('click'); | |
} | |
}); | |
} |
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: | |
web: | |
image: s.kt-team.de/nike/magento:latest | |
volumes: | |
- m2-sync:/repo/magento #add 2 | |
- ${PWD}/../../build/configs/nike.loc/20-xdebug.ini:/etc/php.d/15-xdebug.ini | |
- ${PWD}/../../build/configs/nike.loc/nginx:/etc/nginx | |
- ${PWD}/../../build/configs/nike.loc/ssmtp:/etc/ssmtp | |
- ${PWD}/../../build/configs/nike.loc/env.php:/repo/magento/app/etc/env.php |
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
#!/usr/bin/env bash | |
curl -O https://gist.githubusercontent.com/mborodov/fec94e11863b5f014a8e2a0ec48d28c9/raw/a36f7b9c0c5d6f506fd49e617549e727c21aa31b/router.php | |
cat > Dockerfile << EOF | |
FROM php:7.2 | |
MAINTAINER Maksim Borodov | |
RUN docker-php-ext-install mbstring pdo pdo_mysql | |
EOF |
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 | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
chdir($root); | |
$path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/'); | |
if(file_exists($root.$path)) | |
{ | |
if(is_dir($root.$path) && substr($path,strlen($path) - 1, 1) !== '/') | |
{ | |
header('location: '.rtrim($path,'/').'/'); |
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: | |
server: | |
image: php:7.2 | |
command: php -S 0.0.0.0:8000 /app/index.php | |
ports: | |
- "8000:8000" | |
volumes: |
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" | |
services: | |
web: | |
image: nginx:latest | |
container_name: nginx | |
volumes: | |
- ./web:/usr/share/nginx/html | |
ports: | |
- "80:80" | |
restart: always |
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: | |
redis: | |
image: redis:alpine | |
container_name: redis | |
volumes: | |
- './data:/data' | |
ports: | |
- '6379:6379' |
NewerOlder