Skip to content

Instantly share code, notes, and snippets.

View afonsoaugusto's full-sized avatar
👾
SRE & DevOps

Afonso Rodrigues afonsoaugusto

👾
SRE & DevOps
View GitHub Profile
@afonsoaugusto
afonsoaugusto / list.txt
Created September 5, 2022 14:28 — forked from coryodaniel/list.txt
GCP List of API Services
NAME TITLE
abusiveexperiencereport.googleapis.com Abusive Experience Report API
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API
accessapproval.googleapis.com Access Approval API
accesscontextmanager.googleapis.com Access Context Manager API
actions.googleapis.com Actions API
adexchangebuyer-json.googleapis.com Ad Exchange Buyer API
adexchangebuyer.googleapis.com Ad Exchange Buyer API II
adexchangeseller.googleapis.com Ad Exchange Seller API
adexperiencereport.googleapis.com Ad Experience Report API
@afonsoaugusto
afonsoaugusto / .gitignore
Last active July 25, 2022 21:30
Testing-postgresql+pg8000
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
@afonsoaugusto
afonsoaugusto / Jira-to-s3.ipynb
Created April 7, 2022 18:14
Jira-to-s3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afonsoaugusto
afonsoaugusto / README.md
Last active April 1, 2022 22:41
Dataset

dd

@afonsoaugusto
afonsoaugusto / README.md
Created March 30, 2022 18:03
Test Execute Script .SQL with sqlalchemy

test-sqlalchemy

python3.9 -m venv venv
source venv/bin/activate
#  pip freeze > requirements.txt
pip install -r requirements.txt

docker run --rm -it -e MYSQL_ROOT_PASSWORD=root \
 -e MYSQL_DATABASE=reports \
@afonsoaugusto
afonsoaugusto / sed_prevent_destroy_terraform.sh
Created September 2, 2021 13:24
Sed in all files change prevent_destroy true to false
#!/bin/bash
grep -rl "prevent_destroy = true" . | xargs sed -i 's/prevent_destroy = true/prevent_destroy = false/g'
Name: resale-weekly-job-task-kem87nrze2
Namespace: spring-cloud-dataflow
Priority: 0
Node: ip-10-0-9-130.ec2.internal/10.0.9.130
Start Time: Fri, 21 May 2021 17:56:19 -0300
Labels: role=spring-app
spring-app-id=resale-weekly-job-task-kem87nrze2
spring-deployment-id=resale-weekly-job-task-kem87nrze2
task-name=resale-weekly-job-task
Annotations: kubernetes.io/psp: eks.privileged
@afonsoaugusto
afonsoaugusto / spark-pi.yml
Created April 30, 2021 12:56
Airflow + Spark + k8s
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: SparkApplication
metadata:
name: pyspark-pi
namespace: spark-job
spec:
type: Python
pythonVersion: "3"
mode: cluster
image: "gcr.io/spark-operator/spark-py:v3.0.0"
1 2
1 3
1 4
2 1
3 1
4 1