View jared-blalock-2018-simple.md

Jared Blalock

Certified Sr Magento Consultant / Developer


Summary

Being completely self taught and motivated by technology itself. It is the drive behind wanting to learn as much as I can about new technology and the possibilities and opportunities they can create.

View jared-blalock-2018-detail.md

Jared C. Blalock

🎯 OBJECTIVE

Being completely self taught & motivated by technology itself. It is the drive behind a passion for wanting to learn as much as possible about new cutting edge technologies & the opportunities they can create that drives me further into technology.

👷 TECHNICAL SKILLS

| Magento 1.x | Magento 2.x | LAMP Stack |

View .Xresources
! Dracula Xresources palette
*.foreground: #F8F8F2
*.background: #282A36
*.color0: #000000
*.color8: #4D4D4D
*.color1: #FF5555
*.color9: #FF6E67
*.color2: #50FA7B
*.color10: #5AF78E
*.color3: #F1FA8C
View terminalrc
ColorBackground=#28282a2a3636
ColorForeground=#f8f8f8f8f2f2
ColorSelection=#363639394848
ColorBold=#f4f47676c3c3
ColorCursor=#5050fafa7b7b
TabActivityColor=#5050fafa7b7b
ColorPalette=#000000000000;#9a9a40404646;#90907979b3b3;#929298986363;#3d3d98985a5a;#9a9a53538282;#3a3a4d4d5b5b;#8bfc8bfc8ccc;#4d4d4d4d4d4d;#ffff55555555;#cacaa9a9fafa;#f1f1fafa8c8c;#5050fafa7b7b;#ffff7979c6c6;#8b8be9e9fdfd;#f8f8f8f8f2f2
ColorSelectionUseDefault=FALSE
ColorBoldUseDefault=FALSE
View m2-mage-log.php
<?php
// ------------------------------------------------------------------
// Psr Logging Interface *the right way*
protected $logger;
public function __construct(\Psr\Log\LoggerInterface $logger)
{
$this->logger = $logger;
}
$this->logger->debug(\Zend_Debug::dump($message));
View mysql-mem-report.sh
#!/bin/sh
# Taken from https://dev.mysql.com/doc/refman/5.7/en/memory-use.html
mysql -e "show variables; show status" | awk '
{
VAR[$1]=$2
}
END {
MAX_CONN = VAR["max_connections"]
View media-catalog-product-cache.md

Deconstructing the cache image path in Magento 1.x/2.x

/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/m/e/me-d1_2.jpg
|___________________________|_|_____|________________________________|_|_|__________|
             |               |   |                  |                 | |     |
       Cache Directory       |   |                  |                 | |     |
Mage/Catalog/Model/Product/Media/Config.php         |                 | |     |
getBaseMediaPath()           |   |                  |                 | |     |
                             |   |                  |                 | |     |
View m2-lessc-to-clessc.md

PURPOSE:

  • .less parser switch from PHP lessc to a C++ implemenation (or Node.Js)

INSTRUCTIONS:

change directory into the root of your Magento 2 installation select LESS C++ (recommended!) or use alternative of Node.Js Lessc, which is most likely already included in with your Magento 2 install.

View nohup-M2-CLI-log.md

Push a command to run immune to hangup signals, and hopefully SSH clients crashing, while logging errors & output to a log file. Avoid re-executing if SSH timeouts occur, internet/VPN crash, etc.

Standard bin/magento example:

nohup php -f bin/magento catalog:images:resize > var/log/catalog_images_resize.log 2>&1&

For those who prefer n98-magerun2.phar

nohup n98-magerun2.phar catalog:images:resize > var/log/catalog_images_resize.log 2>&1&

View disable-css-js-merge-minify-m2.sql
-- review
select * from core_config_data where path like 'dev/%';
-- update all
update core_config_data set value = '0' where path = 'dev/css/merge_css_files';
update core_config_data set value = '0' where path = 'dev/css/minify_files';
update core_config_data set value = '0' where path = 'dev/js/merge_files';
update core_config_data set value = '0' where path = 'dev/js/enable_js_bundling';
update core_config_data set value = '0' where path = 'dev/js/minify_files';
UPDATE core_config_data SET value = '0' WHERE path = 'dev/static/sign';