Add in conditions at the bottom for filtering.
SELECT
`entity`.`entity_type_code`,
`attr`.`attribute_code`,
`store`.`code` AS `store_code`,
`store`.`store_id`,
`option`.`option_id`,
`option`.`sort_order`,
coffee() { | |
ps aux | grep -v grep | grep caffeinate > /dev/null | |
if [ $? -eq 1 ]; then | |
caffeinate -dimsu & | |
fi | |
} | |
killCoffee() { | |
ps aux | grep -v grep | grep caffeinate > /dev/null | |
if [ $? -eq 0 ]; then | |
kill $(pgrep -f caffeinate) |
<?php | |
declare(strict_types=1); | |
namespace VendorName\ModuleName\Console\Command; | |
use Magento\Catalog\Model\Product; | |
use Magento\Catalog\Model\ProductFactory; | |
use Magento\Catalog\Model\ResourceModel\Product as ProductResource; | |
use Magento\Framework\App\State; |
Add in conditions at the bottom for filtering.
SELECT
`entity`.`entity_type_code`,
`attr`.`attribute_code`,
`store`.`code` AS `store_code`,
`store`.`store_id`,
`option`.`option_id`,
`option`.`sort_order`,
Linux compatible instructions for finding and/or removing trailing spaces from non-binary files.
./bin/magento config:set cataloginventory/options/show_out_of_stock 1
./bin/magento config:set cataloginventory/options/can_subtract 0
./bin/magento config:set cataloginventory/item_options/manage_stock 0
update catalog_product_entity_decimal
set value = '9999.99'
<?php | |
declare(strict_types=1); | |
namespace VendorName\ModuleName\Setup\Patch\Data; | |
use Magento\Eav\Setup\EavSetupFactory; | |
use Magento\Framework\Setup\ModuleDataSetupInterface; | |
use Magento\Framework\Setup\UninstallInterface; | |
use Magento\Framework\Setup\Patch\DataPatchInterface; |
<?php | |
class Config | |
{ | |
public static $adminUsername = ''; | |
public static $adminPassword = ''; | |
public static $expectedLoginLandingRoute = '/index/index/'; | |
public static $authCookieName = 'adminhtml'; |
pushToDev() { | |
php -nr ' | |
function getCurrentBranchName(): ?string { | |
$branches = shell_exec("git branch 2>/dev/null"); | |
$branchName = null; | |
if (is_string($branches)) { | |
$branches = explode(PHP_EOL, trim($branches)); | |
foreach ($branches as $branch) { | |
if (strpos($branch, "*") === 0) { | |
$branchName = trim(substr($branch, 1)); |
# Terminal Styling | |
setopt prompt_subst | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' stagedstr 'M' | |
zstyle ':vcs_info:*' unstagedstr 'M' | |
zstyle ':vcs_info:*' check-for-changes true | |
zstyle ':vcs_info:*' actionformats '%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' | |
zstyle ':vcs_info:*' formats \ |
Just a cheat Sheet