Skip to content

Instantly share code, notes, and snippets.

View phaelfp's full-sized avatar

Raphael Freitas Pereira phaelfp

View GitHub Profile
@phaelfp
phaelfp / wsl-info.md
Created November 27, 2024 05:12 — forked from WillianTomaz/wsl-info.md
Instruções do WSL (Instalação, Backup e Restauração)

LinkedIn

Instruções para Instalação, Backup e Restauração do WSL 2

  • Observação:

    • Sempre buscar pela documentação oficial, este documento é um tutorial
      que pode não te atender conforme tenha novas atualizações do processo de instalação.
    • As referências estão no final do documento.
  • Foi utilizado:

Estudos de caso com o Flux

Tópicos da apresentação

  • estratégias de deploy
  • tipos de fontes usadas pelo Flux
  • CRDs do Flux
  • benefícios de se usar flux na estrutura de gitops
  • estudo de caso: vículo básico de um repositório
  • estudo de caso: instalação de uma aplicação com helmrelease

Install magento with composer

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
 composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition <install-directory-name>

Require the Cloud docker and ECE tools

@phaelfp
phaelfp / git.md
Created June 10, 2021 13:00 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@phaelfp
phaelfp / CustomAttributeInstaller.php
Created February 10, 2021 17:07 — forked from 0-Sony/CustomAttributeInstaller.php
Magento 2 : Create attributeSet, AttributeGroup, Product Attributes programmatically, and add Options (tested on Version 2.3, but older should work as well)
<?php
/**
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @author Phuong LE <[email protected]> <@>
* @copyright Copyright (c) 2019 Menincode (http://www.menincode.com)
*/
namespace MyNameSpace\Catalog\Setup;
@phaelfp
phaelfp / README.md
Created November 11, 2020 13:20 — forked from leek/_Magento2_DeleteTestData.md
Magento 2 - Delete All Test Data

These set of scripts are for Magento 2. For Magento 1, see this Gist.

@phaelfp
phaelfp / ButtonLink.js
Created July 28, 2020 23:17 — forked from omariosouto/ButtonLink.js
Aula 01 - Códigos Extras
@phaelfp
phaelfp / docker-git-post-receive.sh
Created July 13, 2020 11:36 — forked from Aukhan/docker-git-post-receive.sh
A sample git post-receive hook to deploy with docker. Use the latest commit hash as image tags to make sure the latest gets pulled always, assumes services were deployed using docker stack deploy.
#!/bin/bash
PREFIX="MY CLIENT -"
REPO_PATH='/home/ubuntu/server/client'
ACCEPTABLE_BRANCH="DEV"
COMPOSE_FILE="docker-compose.production.yml"
CLIENT_IMAGE="127.0.0.1:5000/mpc_nginx_client"
@phaelfp
phaelfp / list.md
Created May 28, 2020 19:08 — forked from dzungtran/list.md
List of tables to safely truncate in Magento

Before you do anything

  • Make sure you test clearing this data in a non-production environment first.
  • Always make backups before you lose data forever.
  • Make sure you're truncateing, not droping.
  • Probably a good idea to reindex everything via shell after mass deleting records

To expand on Jim's answer, Magento Support doesn't need the contents of these tables when they ask for a copy of your DB, so you could consider them non-essential.

@phaelfp
phaelfp / 2019-https-localhost.md
Created March 24, 2020 16:29 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).