I hereby claim:
- I am jbcurtin on github.
- I am jbcurtin (https://keybase.io/jbcurtin) on keybase.
- I have a public key ASB8T5ISkSTfmT08IhFfVhOr7dfNyyu3hIm3oalz87yMXgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/awserr" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/secretsmanager" | |
| ) |
| #!/usr/bin/env python | |
| import boto3 | |
| import logging | |
| import os | |
| import shutil | |
| import zipfile | |
| from botocore.errorfactory import ClientError |
| from bert import datasource, utils | |
| @binding.follow(validate_checksum, pipeline_type=constants.PipelineType.BOTTLE) | |
| def define_schema(): | |
| import os | |
| import tempfile | |
| work_queue, done_queue, ologger = utils.comm_binders(define_schema) | |
| table_name: str = 'gaia_source' |
| #!/usr/bin/env python | |
| import boto3 | |
| s3client = boto3.client('s3') | |
| for name in [bucket['Name'] for bucket in s3client.list_buckets()['Buckets']]: | |
| if '10two1' in name: | |
| continue | |
| print(f'Deleting bucket[{name}]') | |
| bucket = boto3.resource('s3').Bucket(name=name) |
| version: "3" | |
| networks: | |
| corenetwork: | |
| driver: bridge | |
| metrics: | |
| services: | |
| webservice-registry: | |
| deploy: | |
| restart_policy: |
| #! /usr/bin/env bash | |
| # A script to install docker-compose in Linux | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
| # https://docs.docker.com/compose/install/#install-compose | |
| set -e | |
| set -x | |
| export LC_ALL="en_US.UTF-8" | |
| export LC_CTYPE="en_US.UTF-8" |
| import codecs | |
| import inspect | |
| import logging | |
| import os | |
| import uuid | |
| logger = logging.getLogger(__name__) | |
| STACK_PRINT_DIR = '/tmp/stacks' | |
| STACK_DEPTH = 50 | |
| _STACK_PRINTS = [] |
| #!/usr/bin/env python | |
| ''' | |
| A #microtutorial to show how to use asyncio and some other stdlib-tools, | |
| https://pugetsoundpython.slack.com/archives/C03LJKBPJ/p1530204386000485 | |
| Invoke with, | |
| `python nhuntwalker-asyncio.py -m on` | |
| `python nhuntwalker-asyncio.py -m awe` | |
| `python nhuntwalker-asyncio.py` |
| from IPython.core.magic import Magics, magics_class, line_magic | |
| import asyncio | |
| from concurrent.futures import Future | |
| # Credits goes to https://gist.github.com/chrisseto/8f7289497f40ad442a30#gistcomment-1701177 | |
| @magics_class | |
| class AsyncMagics(Magics): | |
| @line_magic | |
| def await(self, line): |