Skip to content

Instantly share code, notes, and snippets.

View Koc's full-sized avatar
🇺🇦
Donate to United24 or Come Back Alive

Konstantin Myakshin Koc

🇺🇦
Donate to United24 or Come Back Alive
  • METRO Markets GmbH
  • Ukraine, Kyiv
  • X @myakshin
View GitHub Profile
@Koc
Koc / FiltersResettableAggregation.php
Last active May 28, 2019 09:04
Specificator Aggregations
<?php
namespace Brouzie\Specificator;
interface FiltersResettableAggregation
{
/**
* Returns true for filters that prevent building this aggregation, false otherwise.
*/
public function isFilterShouldBeExcluded(object $filter): bool;
@Koc
Koc / docker-compose.yaml
Created May 2, 2018 14:07
satin-docker
version: '3'
services:
satin-web:
image: brouzie/php:7.0
# build:
# context: build/web
# dockerfile: php-7.0/Dockerfile
container_name: satin-web
hostname: satin-web
links:
@Koc
Koc / export.log
Created March 21, 2018 15:52
yml rozetka export 2018-03-21
Export page: 1
Process product: 75748
Process product: 75749
Process product: 75750
Process product: 75973
Process product: 75972
Process product: 75971
Missing equipment: 75971
Process product: 75970
Missing equipment: 75970
@Koc
Koc / bin > drun
Created March 20, 2018 15:09 — forked from jakzal/bin > drun
Docker with Symfony, RabbitMQ, Nginx
#!/bin/bash
set -e
set -u
set -o pipefail
COMMAND=${1:-"help"}
MACHINE_NAME=myapp
DENV=${DENV:-"dev"}
@Koc
Koc / run_script.bat
Created September 21, 2017 15:05 — forked from zhuzhuor/run_script.bat
Batch file to run a Python script in the same folder
@ECHO off
set "script_path=%~dp0"
set "script_path=%script_path%my_script.py"
python %script_path% %*
@Koc
Koc / product-description-errors.log
Created August 5, 2016 10:41
Ошибки на сатине
page: 2
page: 3
page: 4
Product 49698 error in html description (error parsing attribute name)
Product 49686 error in html description (Opening and ending tag mismatch: ul line 1 and div)
Product 49685 error in html description (Opening and ending tag mismatch: ul line 1 and div)
page: 5
page: 6
page: 7
page: 8
@Koc
Koc / Table.php
Created March 12, 2016 10:37 — forked from IvanChepurnyi/Table.php
Optimized options load
<?php
/**
* Optimized version of attribute source options model
*
* That allows to preload options once and reuse them instead of doing calls to db all the time
*
*/
class EcomDev_Optimization_Model_Resource_Attribute_Source_Table
extends Mage_Eav_Model_Entity_Attribute_Source_Table
@Koc
Koc / a.csv
Last active March 5, 2016 09:31
беговой
area_id priority lat lng
772 0 55.78552753 37.56576486
772 1 55.79135504 37.57389732
772 2 55.79157265 37.57430501
772 3 55.79164217 37.57455178
772 4 55.79169355 37.57479854
772 5 55.79173935 37.57511471
772 6 55.79176108 37.57543070
772 7 55.79175012 37.57754328
772 8 55.79180074 37.58024493
metalloprokat@metalloprokat1:/data/www/metalloprokat.ru$ curl -I http://www.metalloprokat.ru/sort/armatura/ | grep X-Exec-Time
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
X-Exec-Time: 20ms
metalloprokat@metalloprokat1:/data/www/metalloprokat.ru$ curl -I http://www.metalloprokat.ru/sort/armatura/a1/ | grep X-Exec-Time
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
X-Exec-Time: 34ms