Skip to content

Instantly share code, notes, and snippets.

@manasouza
manasouza / fiis_extraction.py
Last active January 21, 2022 00:03
Extrai informações de dividendos de Fundos Imobiliários (dividend yield) a partir de informações do site fiis.com.br. A lista de FIIs é obtida a partir da integração com uma planilha do Google Spreadsheets
"""
For execution it needs the installation of scrapy, gspread, google-cloud-storage and google-oauth and the creation of the
environment variable GOOGLE_APPLICATION_CREDENTIALS with the path to the service account file
"""
import os
import scrapy
import re
import json
import gspread
@manasouza
manasouza / inf-550-spec-operation-analysis.ipynb
Last active January 20, 2022 23:48
INF-550-spec-operation-analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manasouza
manasouza / gcp-sdk-shell-utils.md
Last active September 25, 2019 18:34
GCP SDK Shell Scripts Utils

Google Cloud SDK Utility Commands

List all IAM roles applicable for a specific IAM permission

# any permission listed at https://cloud.google.com/iam/docs/permissions-reference
export expected_permission=<permission>

for role in $(gcloud iam roles list --format='value(NAME)');                                     
do permissions=$(gcloud iam roles describe $role --format='value(includedPermissions)')
Gist test file for atom-sync-settings