Creates time based Glue partitions given time range.
Keep in mind that you don't need data to add partitions. So, you can create partitions for a whole year and add the data to S3 later.
import re | |
import mmap | |
import typing | |
import hashlib | |
import logging | |
import argparse | |
import datetime | |
import ipaddress | |
import dataclasses | |
import xml.etree.cElementTree as ET |
Creates time based Glue partitions given time range.
Keep in mind that you don't need data to add partitions. So, you can create partitions for a whole year and add the data to S3 later.
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
Here we create the master key. We want only Certify
capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate
capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities
creation process (type 8
)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
#!/usr/bin/env python | |
# details on rabbitMQ password hashing | |
# https://www.rabbitmq.com/passwords.html#computing-password-hash | |
from __future__ import print_function | |
import base64 | |
import os | |
import hashlib | |
import struct | |
import getpass |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
import psycopg2 | |
from sshtunnel import SSHTunnelForwarder | |
# For interactive work (on ipython) it's easier to work with explicit objects | |
# instead of contexts. | |
# Create an SSH tunnel | |
tunnel = SSHTunnelForwarder( | |
('128.199.169.188', 22), | |
ssh_username='<username>', |