Skip to content

Instantly share code, notes, and snippets.

View lays147's full-sized avatar
💭
"We are all stories in the end, just make it a good one" Doctor Who

Lays Rodrigues lays147

💭
"We are all stories in the end, just make it a good one" Doctor Who
View GitHub Profile
@lays147
lays147 / 01-aurora.tf
Last active September 22, 2023 22:09
Aurora + Terraform + Ansible
data "aws_rds_engine_version" "postgresql" {
engine = "aurora-postgresql"
filter {
name = "engine-mode"
values = ["serverless"]
}
}
module "aurora_postgresql_v2" {
@lays147
lays147 / deploy.yml
Last active May 25, 2023 00:23
GitHub OIDC for AWS Authentication Terraform
name: build and push
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
permissions:
@lays147
lays147 / help.md
Last active May 24, 2023 15:14
Alguém pode me ajudar com xxx ?

Alguém pode me ajudar com XXX?

Aprenda a usar o Google, e esgotar até o terceiro O ao pesquisar sua dúvida. Trabalhe nas palavras-chave que você escolhe, experimente ordens diferentes. Pesquise em inglês. 99% das dúvidas que você tem alguém já teve no Stack Overflow. Não conseguiu sanar sua dúvida mesmo fazendo tudo o que foi dito acima? Peça ajuda. Cole o código no Pastebin/Gist, não mande prints.

Youtube

  • Akita on Rails: Akita é a pessoa que todo dev deveria assistir alguns vídeos pelo menos 1x na vida para entender como a Tecnologia funciona debaixo do capô. Tem cagação de regra? Tem. E tudo que ele fala tem 99% de verdade e realidade. https://www.youtube.com/c/FabioAkita1990
@lays147
lays147 / client_dynamo.js
Created February 3, 2022 23:44
boto3 x aws sdk js
import { DynamoDB } from "aws-sdk"
let client = null
export const getClient = (): DynamoDB => {
if (client) return client
client = new DynamoDB({
httpOptions: {
connectTimeout: 1000,
timeout: 1000
@lays147
lays147 / .pre-commit-config.yaml
Last active February 2, 2022 14:02
Python Setup for Code Governance
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.3
hooks:
- id: commitizen
stages: ["commit-msg"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
@lays147
lays147 / .pre-commit-config.yaml
Created December 10, 2021 16:31
Pre-commit for python
default_stages: [commit, push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-toml
- id: check-yaml
- id: check-docstring-first
- id: detect-aws-credentials
@lays147
lays147 / Makefile
Created March 16, 2021 18:07
Make your dev life easier with Make
SHELL := /bin/bash
create_env:
( \
python3 -m venv .venv; \
source .venv/bin/activate; \
pip3 install -r requirements.txt; \
pip install -r dev-requirements.txt; \
)