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
{"_type":"export","__export_format":4,"__export_date":"2020-09-15T01:45:52.755Z","__export_source":"insomnia.desktop.app:v2020.3.3","resources":[{"_id":"req_b81cca1a8022457484d020ab8f3e643e","authentication":{"token":"ybnump24cgbilr8hchg6t48ht5crdg21","type":"bearer"},"body":{"mimeType":"application/json","text":"{\n \"customer\": {\n \"email\": \"jdoe@example.com\",\n \"firstname\": \"Jane\",\n \"lastname\": \"Doe\",\n \"addresses\": [\n {\n \"defaultShipping\": true,\n \"defaultBilling\": true,\n \"firstname\": \"Jane\",\n \"lastname\": \"Doe\",\n \"region\": {\n \"regionCode\": \"NY\",\n \"region\": \"New York\",\n \"regionId\": 43\n },\n \"postcode\": \"10755\",\n \"street\": [\n \"123 Oak Ave\"\n ],\n \"city\": \"Purchase\",\n \"telephone\": \"512-555-1111\",\n \"countryId\": \"US\"\n }\n ]\n },\n \"password\": \"Password1\"\n}"},"created":1600132892965,"desc
sudo apt update
sudo apt install nfs-kernel-server -y
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 \
$(lsb_release -cs) \
stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
#!/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 &&
FROM php:7.3-apache
ENV XDEBUG_PORT 9000
# Install System Dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-get update \
FROM php:7.2-apache
ENV XDEBUG_PORT 9000
# Install System Dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-get update \
FROM php:7.0-apache
ENV XDEBUG_PORT 9000
# Install System Dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-get update \
#!/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: ";