This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep "('your_ext')-.__\(.*\)" -Roh .| sed "s/.*__([\"']//" | sed "s/[\"'].*//g" | sort | uniq | sed "s/\(.*\)/\"\1\",\"\1\"/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request.url = request.url.replace(/\/uenc\/[a-zA-Z0-9,]+\//, '/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_html = $block->toHtml(); | |
if (function_exists('mb_convert_encoding')) { | |
$_html = mb_convert_encoding($_html, "HTML-ENTITIES", "UTF-8"); | |
} | |
return $_html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$trace = debug_backtrace(); | |
foreach ($trace as &$call) { | |
unset($call['object']); | |
unset($call['args']); | |
} | |
echo '<pre>'; | |
print_r($trace); | |
echo '</pre>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'json' | |
class Psb4ukrorgParser | |
attr_accessor :data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /home/user/filezilla.log | grep "=> remote:" | cut -d: -f6 | sort | uniq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$classInstance = $this; | |
$methodName = 'getSome'; | |
$r = new \ReflectionMethod($classInstance, $methodName); | |
var_dump($r->getFileName() . ':' . $r->getStartLine() . ' - ' . $r->getEndLine()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Usage: | |
// mv pub/static/frontend/Magento/luma/en_US pub/static/frontend/Magento/luma/en_US_orig | |
// r.js -o build.js baseUrl=pub/static/frontend/Magento/luma/en_US_origin dir=pub/static/frontend/Magento/luma/en_US | |
// Enable js minification with Uglify. Uncomment this out during development tomake builds faster | |
//optimize: 'none', | |
inlineText: true, | |
// Files that are required for all pages will be included in require.js file | |
deps: [ | |
'jquery/jquery.cookie', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOMAIN=${1:-magento.local} | |
VERSION=${2:-2.3.1} | |
REPO=${3:-https://repo.magento.com/} | |
# REPO=${3:[email protected]:magento/magento2.git} | |
DIR=$DOMAIN | |
# Check availability of composer | |
hash composer 2>/dev/null || { echo >&2 "The script requires \"composer\" (https://getcomposer.org/download/)"; exit 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test "$#" -eq 3; then | |
PACKAGE=${1} | |
VERSION=${2} | |
REQUIRE=${3} | |
else | |
PACKAGE="magento/product-community-edition" | |
VERSION=${1} | |
REQUIRE=${2} |
OlderNewer