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
diff --git a/app/design/frontend/default/theme567/template/sendfriend/send.phtml b/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
index 14432118..be6096dc 100644 | |
--- a/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
+++ b/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
@@ -32,8 +32,13 @@ | |
?> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
- i=0; | |
- var recipCount = 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 | |
$fp = fopen('/tmp/temp_monitor.csv', 'a'); | |
$curl = curl_init('https://home.sensibo.com/api/v2/pods/jFFZuNq6/measurements?apiKey=MxeORFfanBUJnCbd3HLmssEYJF2WbO'); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
$curl_response = curl_exec($curl); | |
if ($curl_response === false) { | |
$info = curl_getinfo($curl); | |
curl_close($curl); | |
die('error occurred during curl exec. Additional info: ' . var_export($info)); | |
} |
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
$('form input:text').each(function(index, elem) { | |
var eId = $(elem).attr('id'); | |
var label = null; | |
if (eId && (label = $(elem).parents('form').find('label[for='+eId.replace(':', '\\:')+']')).length === 1) { | |
$(elem).attr('placeholder', $(label).html().replace(/<\/?[^>]+(>|$)/g, "")); |
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 | |
/** | |
* Just a rough script to parse the exception log, find all entries that match the Declined string, and group | |
* them by day. | |
* This effectively shows a major increase in a sites number of declind transactions, for which scripting was the cause | |
* Setup of reCapctha at checkout stopped this issue | |
* | |
* Log example: | |
* 2017-06-22T15:17:06+00:00 ERR (3): | |
* exception 'Mage_Core_Exception' with message 'Declined: 15005-This transaction cannot be processed.' in public_html/app/Mage.php:603 |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Run with: vagrant up --provider=docker | |
# to get a dns entry for the docker machines use DNSGUARD | |
# docker run -d -v /var/run/docker.sock:/var/run/docker.sock --restart always --name dnsdockmain -p 172.17.42.1:53:53/udp tonistiigi/dnsdock -domain=".local.com" -nameserver="192.168.50.20:53" | |
# | |
# common usage: vagrant --name=magento up --provider=docker | |
require 'getoptlong' |
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 | |
declare(strict_types=1); | |
namespace Enjo\Pure\Ui\DataProvider\Product\Form\Modifier; | |
use Magento\Ui\Component\Container; | |
use Magento\Ui\Component\DynamicRows; | |
use Magento\Ui\Component\Form\Field; | |
use Magento\Ui\Component\Form\Fieldset; | |
use Magento\Ui\Component\Form\Element\Textarea; |
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
{ | |
"server": { | |
"host": "localhost", | |
"port": 8080, | |
"searchEngine": "elasticsearch" | |
}, | |
"orders": { | |
"useServerQueue": false | |
}, | |
"catalog": { |
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 | |
#first param = db user, second param = db name | |
rm -rf app/code/core/Enterprise | |
rm -rf downloader/template/enterprise | |
rm -rf app/design/install/default/enterprise | |
rm -rf app/design/frontend/enterprise | |
rm -rf app/design/adminhtml/default/default/layout/enterprise | |
rm -rf app/design/adminhtml/default/default/template/enterprise |
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
diff --git a/src/Core/Http/Serialization/XmlObjectSerializer.php b/src/Core/Http/Serialization/XmlObjectSerializer.php | |
index 1c7d865..4a4a3cc 100644 | |
--- a/src/Core/Http/Serialization/XmlObjectSerializer.php | |
+++ b/src/Core/Http/Serialization/XmlObjectSerializer.php | |
@@ -83,9 +83,9 @@ class XmlObjectSerializer extends IEntitySerializer | |
private static function PhpObjFromXml($className, $xmlStr) | |
{ | |
$className = trim($className); | |
- if (class_exists($className, CoreConstants::USE_AUTOLOADER)) { | |
+ if (@class_exists($className, CoreConstants::USE_AUTOLOADER)) { |
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 ProxiBlue\Shell\Console\Command; | |
use Magento\Setup\Exception; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Input\InputOption; |