magento 2 phtml is homege ?

$flagHome = false;$objectManager = MagentoFrameworkAppObjectManager::getInstance();$request = $objectManager->get('MagentoFrameworkAppActionContext')->getRequest();if ($request->getFullActionName() == 'cms_index_index') {    $flagHome = true;}

PhantomJS Ubuntu install & web capture

First, install or update to the latest system software.sudo apt-get update sudo apt-get install build-essential chrpath libssl-dev libxft-dev Install these packages needed by PhantomJS to work correctly.sudo apt-get install libfreetype6…

magento 2 image size

https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.htmlCommand usage:php bin/magento catalog:images:resize

golang ubuntu install

https://fabianlee.org/2018/05/09/golang-installing-the-go-programming-language-on-ubuntu-16-04/https://tecadmin.net/install-go-on-ubuntu/https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04https://hurriyetlabs.com/visual-studio-code-ile-5-dakika-da-golang-geli%C5%9Ftirme-ortam%C4%B1-5e3ace9e404anice tuthttps://ewanvalentine.io/microservices-in-golang-part-1/https://kylewbanks.com/blog/tutorial-opengl-with-golang-part-1-hello-opengl

ubuntu hibernate

https://websiteforstudents.com/enable-hibernation-ubuntu-17-10-desktop/https://help.ubuntu.com/14.04/ubuntu-help/power-hibernate.html HOW TO ADD A SWAP FILE TO UBUNTU  1. sudo dd if=/dev/zero of=/swapfile bs=1M count=(size in MB) 2. sudo e4defrag /swapfile (Spinning drives only!) 3. sudo chmod 600 /swapfile 4. sudo mkswap /swapfile  MOUNTING…