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 / 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 / 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 / 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 / dev-env.md
Last active September 22, 2024 22:16
Configure dev env

Lg Gram specific fixes

Remove spam in syslog

echo 'blacklist int3403_thermal' | sudo tee /etc/modprobe.d/fix-syslog-spam.conf

sudo update-initramfs -u

Fix for audio

@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 / 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 / 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 / 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;