Skip to content

Instantly share code, notes, and snippets.

View IvanildoBarauna's full-sized avatar
🇧🇷
Data & Analytics Engineer

Ivanildo Barauna de Souza Junior IvanildoBarauna

🇧🇷
Data & Analytics Engineer
View GitHub Profile
@IvanildoBarauna
IvanildoBarauna / StackTracing.py
Last active September 2, 2024 18:54
How to use Python for Collect data from Stack Tracing
import inspect
import datetime
import json
import pandas as pd
import os
def start():
print("função start iniciada")
middle(1)

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
from oletools.olevba import VBA_Parser
import os
import datetime
# Script para Extração de Código VBA
#
# Este script utiliza a biblioteca oletools para extrair código VBA de arquivos
# e salvá-lo em arquivos separados. A função principal `extract_full_code` percorre
# uma lista de arquivos .XLSM na pasta 'source_files/' e verifica se eles contêm macros VBA.
# Caso contenham, todas as macros são extraídas e salvas em uma pasta chamada 'new_files/'
import asyncio
import time
async def transform():
print(f"inicou transformação ás: {time.strftime('%X')}")
await asyncio.sleep(2)
print(f"finalizou transformação ás: {time.strftime('%X')}")
async def extract():
from enum import Enum
from datetime import datetime, timezone
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
import logging
logging.getLogger("__name__")
def logger(function):
def inner(*args, **kwargs):