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 | |
if (defined('STDIN')) { | |
$_GET['user'] = $argv[1]; | |
// sudo -u www-data -- php pub/autologin.php "Lennon ava" | |
} | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
header('Expires: Tue, 04 Sep 2012 05:32:29 GMT'); | |
ini_set('display_errors', 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
<?php | |
/* Need to add this script and csv in var/shell folder */ | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('memory_limit', '5G'); | |
error_reporting(E_ALL); | |
set_time_limit(0); |
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 | |
/* Need to add this script and csv in var/shell folder */ | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('memory_limit', '5G'); | |
error_reporting(E_ALL); | |
set_time_limit(0); |
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 | |
/* Need to add this script and csv in var/shell folder */ | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('memory_limit', '5G'); | |
error_reporting(E_ALL); | |
set_time_limit(0); |
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 | |
/** | |
* Copyright © All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
declare(strict_types=1); | |
namespace Mageseller\Utility\Rewrite\Magento\UrlRewrite\Model\Storage; | |
use Magento\Framework\DB\Select; |
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
#requires: | |
# 'xprintidle' for inactivity check (in ms) | |
# 'rand' for generating random number (screen resolution) | |
# 'xdotool' to move the mouse pointer | |
#parameters: | |
# 100000 idle time in ms before executing the mousemove | |
# 800 / 600: your screen resolution, at at least the moving range for the mouse pointer | |
while :; do |
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
$html .= <<<EndHTML | |
<script> | |
require(['prototype'], function(){ | |
Event.observe($('carriers_tablerate_condition_name'), 'change', checkConditionName.bind(this)); | |
function checkConditionName(event) | |
{ | |
var conditionNameElement = Event.element(event); | |
if (conditionNameElement && conditionNameElement.id) { | |
$('time_condition').value = '_' + conditionNameElement.value + '/' + Math.random(); | |
} |
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 $productVideos = []; ?> | |
<script> | |
var videoData = JSON.parse('<?= str_replace(["\\"], ["\\\\"], json_encode($productVideos)) ?>'); | |
</script> |
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 | |
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute; | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\DataObject; | |
require '../app/bootstrap.php'; | |
$params = $_SERVER; | |
$bootstrap = Bootstrap::create(BP, $params); |
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 | |
namespace Namespacename\Modulename\Helper; | |
use Magento\Catalog\Model\Indexer\Category\Product\TableMaintainer; | |
use Magento\Framework\App\ObjectManager; | |
use Magento\Framework\App\Helper\AbstractHelper; | |
class CategoryHelper extends AbstractHelper | |
{ | |
/** | |
* @var \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory |
NewerOlder