Skip to content

Instantly share code, notes, and snippets.

View daniloaldm's full-sized avatar
:octocat:
Focusing

Danilo Alexandrino daniloaldm

:octocat:
Focusing
View GitHub Profile
#!/bin/bash
#################################################################
## Script de configuração geral - Linux
## By Hewerson Freitas (https://github.com/hewersonfreitas)
################################################################
## Update and Upgrade Distro
sudo apt update && sudo apt upgrade -y &&
#!/bin/bash
## Update and Upgrade Distro
sudo apt update && sudo apt upgrade -y &&
## Install Addons Codecs
sudo apt install ubuntu-restricted-extras -y &&
## Setting Buttons to Left Side
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' &&
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:' &&
## Install VLC Player
sudo apt-get install vlc -y &&
@daniloaldm
daniloaldm / rebuild-magento-2-3.sh
Created January 21, 2020 21:21 — forked from hewersonfreitas/rebuild-magento-2-3.sh
rebuild magento >=2.2.x
sudo chown -R www-data:www-data /var/www/html/{loja} &&
sudo rm -rf /var/www/html/{loja}/var/* &&
sudo rm -rf /var/www/html/{loja}/generated/* &&
sudo rm -rf /var/www/html/{loja}/pub/static/* &&
sudo chmod -R 777 /var/www/html/{loja}/pub/static &&
php /var/www/html/{loja}/bin/magento setup:upgrade &&
php /var/www/html/{loja}/bin/magento setup:di:compile &&
php /var/www/html/{loja}/bin/magento setup:static-content:deploy pt_BR -f &&
chmod -R 777 /var/www/html/{loja}/var &&
chmod -R 777 /var/www/html/{loja}/pub &&
sudo chown -R www-data:www-data /var/www/html/{loja} &&
sudo rm -rf /var/www/html/{loja}/var/* &&
sudo rm -rf /var/www/html/{loja}/pub/static/* &&
sudo chmod -R 777 /var/www/html/{loja}/pub/static &&
php /var/www/html/{loja}/bin/magento setup:upgrade &&
php /var/www/html/{loja}/bin/magento setup:di:compile &&
php /var/www/html/{loja}/bin/magento setup:static-content:deploy pt_BR &&
chmod -R 777 /var/www/html/{loja}/var &&
chmod -R 777 /var/www/html/{loja}/pub &&
sudo chown -R www-data:www-data /var/www/html/{loja} &&
@daniloaldm
daniloaldm / change_php.sh
Created January 12, 2020 16:02 — forked from kelvysmoura/change_php.sh
Altera versão do PHP
clear;
php -v
echo '';
echo "Versão atual: "
read current;
echo "Alterar para a versão: ";
@daniloaldm
daniloaldm / step-1-php-apache.sh
Last active October 7, 2020 18:28 — forked from kelvysmoura/step-1-php-apache.sh
Configuração de ambiente para a instalação do magento 2
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php5.6 -y
sudo apt install php7.0 -y
sudo apt install php7.1 -y
sudo apt install php7.2 -y