Skip to content

Instantly share code, notes, and snippets.

@x86demon
x86demon / incompatibility.py
Created December 11, 2024 19:36
poetry install complete_pretty_name not known
if hasattr(term.dependency, 'complete_pretty_name'):
pretty_name = term.dependency.complete_pretty_name
else:
pretty_name = term.dependency.pretty_name
#!/usr/bin/env php
<?php
$jenkinsFile = $argv[1];
$mode = $argv[2] ?? 'short';
$lines = explode(PHP_EOL, file_get_contents($jenkinsFile, 'r'));
$failedTests = [];
@regression
@ticket-BB-16069
@fixture-OroFlatRateShippingBundle:FlatRateIntegration.yml
@fixture-OroPaymentTermBundle:PaymentTermIntegration.yml
@fixture-OroCheckoutBundle:Checkout.yml
@fixture-OroApplicationProBundle:InventoryLevel.yml
@fixture-OroUserBundle:user.yml
Feature: Guest Checkout should always starts from enter credential step
As a Guest
I want to see Enter Credential Step each time when I click on Create Order button
@x86demon
x86demon / compress_videos.sh
Created December 5, 2023 15:17
Compress all videos in folder
#!/bin/sh
for i in *.mp4; do ffmpeg -i "$i" -vcodec libx265 -crf 28 "compressed/$i";done
[tool.poetry]
name = "example-project"
version = "0.1"
description = ""
authors = ["Example Author <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.11"
prefect = "^2.14"
@x86demon
x86demon / php
Last active January 30, 2023 11:55
Automatic PHP version selector based on composer.json for Gentoo
#!/bin/sh
if [[ -f .php-version ]]
then
PHP_VERSION=$(<.php-version)
else
PHP_VERSION=''
if [[ -f composer.json ]]
then
PHP_VERSION=$(cat composer.json | egrep -o '"php"\s*:\s*"[^0-9]*[7-8]\.[0-9]+' | egrep -o '[5-8]\.[0-9]+')
@x86demon
x86demon / remove_git_branches.sh
Created October 21, 2022 09:32
Remove local detached branches
#!/bin/sh
# https://stackoverflow.com/questions/13064613/how-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore
git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D
#!/bin/sh
SCRIPT=`basename "$0"`
MASTER_NPM_PATH="/opt/node/v20/bin"
NPM_PATH_51="/opt/node/v18/bin"
NPM_PATH_50="/opt/node/v16/bin"
OLD_NPM_PATH="/opt/node/v14/bin"
SCRIPT_BIN="${OLD_NPM_PATH}/${SCRIPT}"
@x86demon
x86demon / console.sql
Created March 3, 2021 15:41
MQ topic and body
SELECT properties::jsonb->'oro.message_queue.client.topic_name' as topic, body FROM oro_message_queue;
<?php
namespace Oro\Bundle\PricingBundle\Async;
use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ManagerRegistry;
use Oro\Bundle\PricingBundle\Builder\ProductPriceBuilder;
use Oro\Bundle\PricingBundle\Entity\PriceList;
use Oro\Bundle\PricingBundle\Entity\Repository\PriceListRepository;