import os
import pandas as pd
# define aws credentials by os enviroment variables
os.environ['AWS_ACCESS_KEY_ID'] = '...'
os.environ['AWS_SECRET_ACCESS_KEY'] = '...'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
import json | |
import argparse | |
from pymongo import MongoClient | |
parser = argparse.ArgumentParser( | |
prog='mongodb_query_filter.py', | |
description='Execute mongodb queries' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# https://github.com/ronf/asyncssh | |
import argparse | |
import asyncio | |
import time | |
import asyncssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# https://docs.paramiko.org/en/stable/ | |
# https://didatica.tech/paramiko-com-python-aprenda-a-utilizar-com-exemplos-praticos/ | |
import argparse | |
import sys | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent1: | |
def parent1_method(self): | |
return "Method from Parent1 class" | |
class Parent2: | |
def parent2_method(self): | |
return "Method from Parent2 class" | |
class Child: | |
def __init__(self, parent_class): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any | |
class WorkflowSkip(Exception): | |
... | |
class WorkflowProcess: | |
workflow_steps = () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
if re.match(r'^/tmp/(?!.*/$).*$', file_path): | |
os.remove(file_path) |
echo -e "#!/bin/bash
#
echo 'This is my script'" > my-script
sudo install my-script /usr/local/bin
NewerOlder