I hereby claim:
- I am fbidu on github.
- I am fbidu (https://keybase.io/fbidu) on keybase.
- I have a public key ASAZ1qsLXXouzhg-0kRH2oiPdV4xXW77OwWEtFoz_ieOSwo
To claim this, I am signing this object:
eb printenv <environment-name> | tail -n +2 | awk '{print "export " $1 "=\"" $3 "\""}' |
eb printenv <environment-name> | tail -n +2 | awk '{print "-e \"" $1 "=" $3 "\" \\"}' |
I hereby claim:
To claim this, I am signing this object:
0x26fc5049bC81986BB3703af70BBe1ef4babb07E1 |
from xml.dom import minidom # Ou qualquer parser XML que você preferir | |
from Bio import Entrez | |
def search_sra(query, email='[email protected]'): | |
""" | |
Retorna um handler de busca para o SRA | |
""" | |
Entrez.email = email | |
handle = Entrez.esearch(db='sra', | |
sort='relevance', |
import boto3 | |
class Cluster: | |
""" | |
Class to handle an ECS Cluster | |
""" | |
def __init__(self, name, boto3_session): | |
assert type(boto3_session) == boto3.session.Session, "Please, provide an boto3 Session as argument!" | |
self.name = name | |
self.boto3_session = boto3_session |
aws ecs describe-task-definition \
--task-definition <task_arn> \
--query "taskDefinition.containerDefinitions[0].environment[]" |
jq -r '.[] | "-e \(.name)=\"\(.value)\" \\"'
class CacheState(Enum): | |
""" | |
Enum to diferentiate caches hits and misses for boolean values. | |
It was created to store OAuth2 token validity in cache. In that | |
scenario, a cache miss prompts an API call to check the token, | |
while a cache hit with a False value does not. | |
VALID and INVALID are bool compatible. | |
>>> bool(CacheState.INVALID) |
326.75 | 39.9 | 39.92 | 3.69 | |
---|---|---|---|---|
333.05 | 49.75 | 49.76 | 3.91 | |
338.45 | 59.85 | 59.72 | 4.09 | |
340.95 | 64.9 | 64.86 | 4.17 | |
343.25 | 69.81 | 69.9 | 4.25 | |
345.35 | 74.84 | 74.78 | 4.31 | |
347.45 | 79.85 | 79.93 | 4.38 |