Skip to content

Instantly share code, notes, and snippets.

@arjus
arjus / centos7lemp.sh
Last active April 19, 2019 20:06
TODO magento 2 lemp stack bash command for CentOS 7 with redis and composer
#bash script
#Arjus
#lemp stack for CentOS 7 with redis and composer
#linux
#nginx
#mariadb
#php7.2 TODO
#redis
#composer
@arjus
arjus / ubuntulemp.sh
Last active April 25, 2019 15:03
magento 2 lemp stack bash command for Ubuntu 18 with redis and composer
#bash script
#Arjus
#magento 2 lemp stack for Ubuntu 18 with redis and composer
#linux
#nginx
#mariadb
#php7.2
#redis
#composer
@arjus
arjus / Include phtml in a phtml Magento 2
Created February 7, 2019 15:07
Include phtml in a phtml Magento 2
<?php include ($block->getTemplateFile('Namespace_Customtab::image.phtml')) ?>
@arjus
arjus / install-docker.sh
Created December 30, 2018 21:05
Docker Ce and docker compose installation on Ubuntu 18.04 LTS
#Docker installation commands on Ubuntu 18.04 LTS
#Docker Ce
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt instal docker-ce
@arjus
arjus / Install Yarn on Ubuntu 18 LTS
Created October 5, 2018 15:58
Install Yarn on Ubuntu 18 LTS
#get yarn repository
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#update the repo package and install yarn
sudo apt update
sudo apt install yarn
@arjus
arjus / Solve mariadb root password access denied
Created August 8, 2018 09:49
Solve mariadb root password access denied
# stop maria db
sudo systemctl stop mysql
sudo systemctl stop mariadb
# start mysql without checks
sudo mysqld_safe --skip-grant-tables &
sudo mysql -u root
@arjus
arjus / links localhost config
Created August 7, 2018 12:43
links localhost config
@arjus
arjus / #linux ubuntu 18# remove mariadb or other apps
Last active August 7, 2018 14:23
#linux ubuntu 18# remove mariadb or other apps
sudo apt-get remove --purge *mariadb\*
sudo apt-get autoremove
sudo apt-get autoclean
@arjus
arjus / Delete local branch
Created July 31, 2018 14:14
Delete local branch
git branch -d <branch_name>
@arjus
arjus / enable&disable modules
Last active July 24, 2018 07:13
enable/disable magento 2 modules from cli
magento module:enable --clear-static-content Module_Name
magento module:disable --clear-static-content Module_Name