Skip to content

Instantly share code, notes, and snippets.

View anderson-marques's full-sized avatar
🤖
Hacking as usual...

Anderson Carvalho anderson-marques

🤖
Hacking as usual...
View GitHub Profile
@anderson-marques
anderson-marques / gitlab_auth.js
Created May 18, 2022 12:46
OpenID Connect Login to Gitlab using JavaScript
const http = require('http');
const GITLAB_OAUTH_AUTHORIZATION_URL = 'https://gitlab.com/oauth/authorize'
const GITLAB_OAUTH_CLIENT_ID = 'change-me'
const SERVER_PORT = 4321
let config = {
'base_url': GITLAB_OAUTH_AUTHORIZATION_URL,
'client_id': GITLAB_OAUTH_CLIENT_ID,
'redirect_uri': `http://localhost:${SERVER_PORT}/cb`,
https://chat.openai.com/share/c6913b30-41ab-4e81-9b21-066d96842907
@anderson-marques
anderson-marques / playbook.md
Created November 3, 2023 11:50
AWS SSM using Maintenance Windows to Start and Stop EC2 Instances

How to set up an EC2 schedule using AWS Systems Manager (SSM) Maintenance Windows

Prerequisites:

  1. Make sure you have AWS CLI installed and configured.
  2. Ensure you have an IAM Role with the necessary permissions for SSM and EC2 start/stop operations.

Step-by-Step Playbook:

  1. Create the Maintenance Window for Stopping the EC2 instance:
O nosso data flow é:
(S3) -> (Lambda/Python) -> Glue (Transferencia e Metadados) -> (S3) -> Glue -> Redshift (DW) -> QuickSight (Visualização)
-> Athena (Queries nos dados crus) ou QuickSight (Visualização)
- AWS Glue para o processo de extração dos dados "crus". Estou exporando o DBT.
- A partir de dados armazendos no S3 (DB, arquivos) - voce faz a primeira filtragem e gera um novo Dataset-
--------------
- https://www.databricks.com/product/data-intelligence-platform
- https://www.databricks.com/product/data-intelligence-platform

Keybase proof

I hereby claim:

  • I am anderson-marques on github.
  • I am mccanderson (https://keybase.io/mccanderson) on keybase.
  • I have a public key ASB1xgOAbqJl320g1Mf5iQQsEuPVj5M5xs80133Cb8gAOQo

To claim this, I am signing this object: