Skip to content

Instantly share code, notes, and snippets.

View dng-dev's full-sized avatar

Daniel Niedergesäß dng-dev

View GitHub Profile
@dng-dev
dng-dev / gtm-utilities.js
Created August 1, 2019 09:13 — forked from chrisgoddard/gtm-utilities.js
Google Tag Manager Utility Library
function(){
"use strict";
/**
* Constants
*/
var VERSION = '2.1';
@dng-dev
dng-dev / Z_Disables.xml
Created March 4, 2017 21:47 — forked from vkerkhoff/Z_Disables.xml
Disable Magento modules not used (check if you really don't use any of them), place this file in app/etc/modules/, also disables the logging of visits (can break product compare)
<?xml version="1.0" ?>
<config>
<modules>
<Find_Feed>
<active>false</active>
</Find_Feed>
<Phoenix_Moneybookers>
<active>false</active>
</Phoenix_Moneybookers>
<Mage_XmlConnect>
@dng-dev
dng-dev / jenkins-git-backup.sh
Created March 1, 2017 17:15 — forked from choldrim/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
set -ex
if [ $# -ne 3 ]; then
echo usage: $0 jenkins_home git_repos_url git_repos_name
exit 1
fi
@dng-dev
dng-dev / jenkins-git-backup.sh
Created August 9, 2016 21:45 — forked from abayer/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master
@dng-dev
dng-dev / xdebug.ini
Created May 9, 2016 20:22 — forked from amenk/xdebug.ini
Xdebug links for PHPStorm Remote Call Plugin
; Output links compatible with the PHPStorm Remote Call plugin running on the host.
; source: https://github.com/computerminds/parrot/pull/20/files
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"http://localhost:8091?message=%f:%l\", true); rq.send(null);"
@dng-dev
dng-dev / bgd-php.template
Created November 6, 2015 21:51 — forked from miyamoto-daisuke/bgd-php.template
AWS CloudFormation tempate for PHP Blue-Green Deployment environment
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "PHP Blue-Green Deployment environment template",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String",
"MinLength" : "1",
"MaxLength" : "64",
"AllowedPattern" : "[-_ a-zA-Z0-9]*",
@dng-dev
dng-dev / LICENSE
Created October 18, 2015 01:39 — forked from ifraixedes/LICENSE
AWS lambda handler which download images from S3, resizes them and upload the new ones to S3; tested with mocha, chai, sinon and proxyquire
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
(http://www.wtfpl.net/about/)
Copyright (C) 2015 Mario Mendes (@hyprstack)
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@dng-dev
dng-dev / opcache.ini
Created October 17, 2015 23:42 — forked from tegansnyder/opcache.ini
OpCache settings for Magento on PHP 5.5.14. Store this file as /etc/php.d/opcache.ini
; Enable Zend OPcache extension module
zend_extension=opcache.so
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
; The OPcache shared memory storage size.

Magento Scaling Hypotheses

Magento’s checkout throughput can increase to at least 8 times its current capacity and up to 26 times more in ideal conditions.

  1. The current checkouts per hour limit for large, real-world Magento stores is 4,500
  2. This limit cannot effectively be increased with more and/or better hardware
  3. The improper type handling in Magento’s SQL code is the cause of the current limit
  4. If one SQL query is fixed, large Magento stores can scale to a new, real-world limit of 120,000 checkouts per hour
  5. For commodity hardware, this new limit might be 36,000 checkouts per hour