/etc/security/limits.conf
elasticsearch hard memlock 100000
/etc/default/elasticsearch
diff -rupN mage_org/app/code/core/Mage/Catalog/Model/Url.php src_shop/app/code/core/Mage/Catalog/Model/Url.php | |
--- mage_org/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:48:25.679009391 +0100 | |
+++ src_shop/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:49:24.188005601 +0100 | |
@@ -643,13 +643,24 @@ class Mage_Catalog_Model_Url | |
$this->_rewrite = $rewrite; | |
return $requestPath; | |
} | |
+ | |
+ // avoid unnecessary creation of new url_keys for duplicate url keys | |
+ $noSuffixPath = substr($requestPath, 0, -(strlen($suffix))); |
<?php | |
/** | |
* Magento catalogInventoryStockItemUpdate API example Using SOAPv2 | |
* | |
* Local measurements: | |
* Login time: 1.3139259815216s | |
* Total execution time: 34.751662969589s | |
*/ | |
/** |
server {
listen 80;
root /Users/admin/htdocs/vax-uk;
index index.php index.html index.htm;
server_name vax.local;
access_log /usr/local/etc/nginx/logs/vax_access.log;
access_log /usr/local/etc/nginx/logs/vax_error.log;
Add-Type -AssemblyName System.Security; | |
[Text.Encoding]::ASCII.GetString([Security.Cryptography.ProtectedData]::Unprotect([Convert]::FromBase64String((type -raw (Join-Path $env:USERPROFILE foobar))), $null, 'CurrentUser')) |
#!/usr/bin/env bash | |
if [[ "$1" == '' ]] || [[ "$1" == '--help' ]] | |
then | |
echo "$0 [channel id] [slack token]" | |
exit 0 | |
fi | |
SLACK_CHANNEL_ID="$1" | |
SLACK_TOKEN="$2" |
/** | |
* 1. open cloudflare dashboard, choose domain, go to DNS section | |
* 2. open browser's dev tool (via F12 or inspect or however) | |
* 3. in devtool, go to console tab | |
* 4. clear all existing messages | |
* 5. paste all script below | |
* 6. hit enter and watch | |
* 7. script only delete records displayed in the screen | |
* 8. if want to delete more, refresh browser and run script again | |
* |