Skip to content

Instantly share code, notes, and snippets.

View theguuholi's full-sized avatar
😃

Gustavo theguuholi

😃
View GitHub Profile
@theguuholi
theguuholi / configvscode.md
Last active June 29, 2021 00:10
Elixir and VsCodeConfig

Plugins: ElixirLinter ElixirLS Beautify Better Comments Bracket Pair Colorizer Docker HtmlSnippets

@theguuholi
theguuholi / json
Last active December 13, 2020 11:31
[
{
"full_price": 2139.64,
"price_with_discount": 706.08,
"discount_percentage": 67.0,
"start_date": "01/08/2019",
"enrollment_semester": "2019.2",
"enabled": true,
"course": {
"name": "Engenharia Mecânica",
@theguuholi
theguuholi / Kafka-compose.yml
Last active March 6, 2024 12:19
Kafka-compose
`version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000

Principais Comandos

  • kubectl #client k8s
    • cluster-info
    • create #comando imperativo para criar objetos
      • secret #tipo do objeto
        • generic #tipo de segurança
          • #nome da chave para ser referencia em configurações
            • —from-literal #vamos adicionar a chave por comando
  • key=valor #valor de configuracao
@theguuholi
theguuholi / ci.yml
Created April 1, 2021 14:44
GitHub Actions CI
name: CI
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
name: CD
on:
push:
branches:
- main
jobs:
deploy:
if: github.ref == 'refs/heads/main' # Only run this job if it is on the main branch
runs-on: ubuntu-latest
on:
push:
branches:
- main
name: Build and Deploy a Container
env:
PROJECT_ID: ${{ secrets.GCP_PROJECT }}
SERVICE: rushing
REGION: us-central1
name: Deploy GKE
on:
push:
branches:
- main
env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_CLUSTER: ${{ secrets.GKE_CLUSTER }}
name: CI
on: push
env:
SECRET_KEY_BASE: "KrVbpnTx/SBlnJkq/IQ+dK+OWP2dUkS98sk1y9l5+okoCU2N/kCJ2PNY1T6CS7/I"
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
HOST: "localhost"
sudo: required
language: elixir
elixir:
- '1.10'
opt_release: '22.2.6'
addons:
postgres: "9.4"
services: