Skip to content

Instantly share code, notes, and snippets.

@andreypaa
andreypaa / poprs.json
Created October 27, 2023 07:49
market props
This file has been truncated, but you can view the full file.
{"categoryId":91529,"parameters":[{"id":36502410,"name":"\u0420\u043e\u0441\u0442","type":"ENUM","description":"","recommendationTypes":["ADDITIONAL"],"required":false,"filtering":false,"distinctive":false,"multivalue":false,"allowCustomValues":true,"values":[{"id":38432296,"value":"100-110 \u0441\u043c"},{"id":36601501,"value":"100-115 \u0441\u043c"},{"id":51565624,"value":"100-117 \u0441\u043c"},{"id":51565545,"value":"100-118 \u0441\u043c"},{"id":51565298,"value":"100-120 \u0441\u043c"},{"id":51565528,"value":"100-125 \u0441\u043c"},{"id":51565324,"value":"100-130 \u0441\u043c"},{"id":51565463,"value":"101-115 \u0441\u043c"},{"id":51565692,"value":"104-110 \u0441\u043c"},{"id":36601506,"value":"104-116 \u0441\u043c"},{"id":52093241,"value":"104-122 \u0441\u043c"},{"id":51565701,"value":"105-115 \u0441\u043c"},{"id":51565451,"value":"105-120 \u0441\u043c"},{"id":51565503,"value":"105-125 \u0441\u043c"},{"id":51565519,"value":"105-130 \u0441\u043c"},{"id":51565264,"value":"107-132 \u0441\u043c"},{"id":515653
@andreypaa
andreypaa / delete_local_branches.sh
Created July 13, 2022 09:45 — forked from TSMMark/delete_local_branches.sh
Delete local branches that don't exist on remote/origin !USE AT YOUR OWN RISK!
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D
05-05-2022 01:37:22
ERROR:
Array
(
[type] => 1
[message] => Call to undefined function durrun()
[file] => /var/www/bike/pro-bike.ru/htdocs/index.php
[line] => 23
)
{
"items": [
{
"category_id": 434864420,
"dimension_unit": "cm",
"depth": 130,
"width": 60,
"height": 21,
"weight_unit": "kg",
"weight": 20,
{"items":[{"category_id":434864420,"dimension_unit":"cm","depth":130,"width":60,"height":21,"weight_unit":"kg","weight":20,"vat":"0.2","price":"24750","offer_id":"9980070738014","name":"Aspect Champion (2022)","images":["https:\/\/pro-bike.loc\/data\/images\/catalog\/57\/34657\/1.jpg","https:\/\/pro-bike.loc\/data\/images\/catalog\/57\/34657\/2.jpg"],"complex_attributes":[],"attributes":[{"complex_id":0,"id":"85","values":[{"value":"Aspect"}]},{"complex_id":0,"id":"4180","values":[{"value":"Детский велосипед Aspect Champion (2022)"}]},{"complex_id":0,"id":"7710","values":[{"value":"Хардтейл"}]},{"complex_id":0,"id":"7712","values":[{"value":"20\""}]},{"complex_id":0,"id":"7715","values":[{"value":"Zoom 565"}]},{"complex_id":0,"id":"7723","values":[{"value":"Алюминий"}]},{"complex_id":0,"id":"7727","values":[{"value":"Один размер"}]},{"complex_id":0,"id":"7916","values":[{"value":"6"}]},{"complex_id":0,"id":"7917","values":[{"value":"80мм."}]},{"complex_id":0,"id":"9048","values":[{"value":"Champion"}]},{"comp
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Хост: mariadb
-- Время создания: Фев 25 2022 г., 09:38
-- Версия сервера: 10.5.11-MariaDB-1:10.5.11+maria~focal
-- Версия PHP: 7.4.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
require 'compass/import-once/activate'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "templates"
sass_dir = "templates"
images_dir = "templates"
javascripts_dir = "templates"
@andreypaa
andreypaa / PageSpeed.php
Created November 9, 2021 17:25
PageSpeed
<?php
namespace App\Service;
use App\Entity\Page;
use Doctrine\DBAL\Exception;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
@andreypaa
andreypaa / CDEK.php
Created November 9, 2021 17:24
CDEK
<?php
namespace App\Service\TransportService;
use App\Service\CacheService;
use App\Service\Request;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
final class CDEK extends TransportService
@andreypaa
andreypaa / remove-message.js
Created July 31, 2020 12:57 — forked from simonw/remove-message.js
JavaScript one-liner for removing a ?message=... parameter from the visible URL in the browser
history.replaceState && history.replaceState(
null, '', location.pathname + location.search.replace(/[\?&]message=[^&]+/, '').replace(/^&/, '?')
);