Skip to content

Instantly share code, notes, and snippets.

View phaelfp's full-sized avatar

Raphael Freitas Pereira phaelfp

View GitHub Profile
FROM php:8.3.13-cli-alpine3.20
ENV USER=docker
ENV GROUPNAME=$USER
ENV UID=1000
ENV GID=1000
ENV TZ=America/Sao_Paulo
ENV ORACLE_BASE /usr/lib/instantclient
ENV LD_LIBRARY_PATH /usr/lib/instantclient
ENV TNS_ADMIN /usr/lib/instantclient

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

💻 Quer aprender algo novo? 🎁

Vou ensinar sobre uma ferramenta da CNCF que facilita a implantação contínua de aplicações no Kubernetes de maneira simples e elegante! Vamos falar sobre o ArgoCD!

Começamos instalando o ArgoCD no Kubernetes.

Crie um namespace e aplique os manifests necessários:

kubectl create namespace argocd
@phaelfp
phaelfp / Contato.vcard
Last active May 8, 2022 17:47
Contato
BEGIN:VCARD
VERSION:3.0
N:Freitas Pereira;Raphael;;;
FN:Raphael Freitas Pereira
BDAY:19830625
TEL;TYPE=cell:(21) 96496-4748
EMAIL;TYPE=home:[email protected]
EMAIL;TYPE=work:[email protected]
PHOTO;TYPE=JPEG;ENCODING=b:/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIANAA0AMBIgACEQEDEQH/xAAbAAACAgMBAAAAAAAAAAAAAAAEBQMGAAIHAf/EAD4QAAIBAwMCBAMFBgMIAwAAAAECAwAEEQUSITFBBhMiUTJhcRRCgZGxFSNSocHRkuHwBxYkMzRicoJDVML/xAAZAQADAQEBAAAAAAAAAAAAAAABAgMABAX/xAAiEQACAgICAgMBAQAAAAAAAAAAAQIRAyESMQQTMkFRIhT/2gAMAwEAAhEDEQA/AOWCLNpbKnQlDTBUofSsyWcW4Y28fWmMcVVRNmqR0QkVSRx8UTHFxTCkKQ0QkVTJFxRCRUQECw1KkNELF8qmSL5U6ADrDW4hotYvlW6x8UQAYirfyq0vtSsdPiaW5uY1x9wMNx+gquXHjiMtixsnkU8BpG28/QA/rSuSXZkm+iz+VWeVxVUl8X3keJJLWBBg/u95Y/0xUDePLhDj7DA4xyVlP9qHsiHjIuQizWvlVV7Tx9C7BbuxKL3ZHzj8MVYtK1mw1QFbeRfMHO00ykn0ZprskaGozDTJo+K0MPyogFrQ1A8VNGiqF4aFBFbxUNJFTZ4aHkipQip4q
@phaelfp
phaelfp / Aula-1.md
Last active February 24, 2022 00:23
Aula de React Feliz

✨ 1ª Aula

Tópicos abordados:

  • Layout Mobile First - Técnica muito utilizada no mercado!
    • Primeiro se faz o layout para o mobile e depois para o desktop
    • Porque a maioria dos acessos as aplicações web hoje são provenientes do Celular.
  • Explicado o conceito de Squads e Micro FrondEnd. Exemplos: Gmail, Spotify.
  • Explicado o que é React e as formas de se criar um projeto com React
    • Site do Vite Js 🚀 Iremos utilizar este
  • Site do Create React App - Foi o primeiro a ser desenvolvido
@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 / kanto.json
Last active March 30, 2021 14:05
Super Trunfo Imersão Alura Dia 7
[
{"name":"Bulbasaur","url_image":"https://gamepress.gg/pokemongo/sites/pokemongo/files/styles/240w/public/2018-03/pokemon_icon_001_00.png","attributes":{"healthPoint":128,"attack":118,"defense":111}}
,{"name":"Ivysaur","url_image":"https://gamepress.gg/pokemongo/sites/pokemongo/files/styles/240w/public/2018-03/pokemon_icon_002_00.png","attributes":{"healthPoint":155,"attack":151,"defense":143}}
,{"name":"Venusaur","url_image":"https://gamepress.gg/pokemongo/sites/pokemongo/files/styles/240w/public/2018-03/pokemon_icon_003_00.png","attributes":{"healthPoint":190,"attack":198,"defense":189}}
,{"name":"Charmander","url_image":"https://gamepress.gg/pokemongo/sites/pokemongo/files/styles/240w/public/2018-01/pokemon_icon_004_00.png","attributes":{"healthPoint":118,"attack":116,"defense":93}}
,{"name":"Charmeleon","url_image":"https://gamepress.gg/pokemongo/sites/pokemongo/files/styles/240w/public/2018-01/pokemon_icon_005_00.png","attributes":{"healthPoint":151,"attack":158,"defense":126}}
,
@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.