Skip to content

Instantly share code, notes, and snippets.

import click
from python.import_cleanstart import KubeClient
def backup_rover(kube_client, pvc_name, backup_dir, host, password):
postgres_image = 'postgres:12.2'
sql_command = f'pg_dump -v -d mediaos -j 8 -F d --exclude-table-data=content_versions -f {backup_dir}'
args = ["-c", sql_command]
volumes = {
#!/usr/bin/env bash
set -e
# Should be GITHUB_TOKEN passed if Dockerfile requires installation from private repo
BUILD_ARGS=""
if [[ ! -z $1 ]];
then
BUILD_ARGS="--build-arg GITHUB_TOKEN=$1"
fi
#!/usr/bin/env bash
set -e
# Should be GITHUB_TOKEN passed if Dockerfile requires installation from private repo
BUILD_ARGS=""
if [[ ! -z $1 ]];
then
BUILD_ARGS="--build-arg GITHUB_TOKEN=$1"
fi
#!/usr/bin/env python
import boto3
import argparse
def list_private_zones(parsed_args):
route53_client = boto3.client('route53')
zones = route53_client.list_hosted_zones()
for i in range(len(zones['HostedZones'])):

Keybase proof

I hereby claim:

  • I am keithmeng on github.
  • I am keithmeng (https://keybase.io/keithmeng) on keybase.
  • I have a public key ASCEg9YPgwcSDl4AeAyxBamesQYIkTkDuI28EbMlRQUC0Ao

To claim this, I am signing this object:

UPDATE rover_auth_client r
SET client_id = o.client_id, client_secret = o.client_secret
FROM oidc_provider_client o
WHERE r.name = o.name
AND o.name = 'atonns';