This file contains 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 platform | |
from cdpcli.client import ClientCreator, Context | |
from cdpcli.endpoint import EndpointCreator, EndpointResolver | |
from cdpcli.loader import Loader | |
from cdpcli.parser import ResponseParserFactory | |
from cdpcli.retryhandler import create_retry_handler | |
from cdpcli.translate import build_retry_config | |
This file contains 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 gspread | |
from gspread_dataframe import get_as_dataframe | |
from oauth2client.service_account import ServiceAccountCredentials | |
class GoogleSheets: | |
def __init__(self, credentials): | |
scope = ["https://www.googleapis.com/auth/drive"] | |
self.gc = gspread.authorize( |
This file contains 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 | |
from functools import lru_cache | |
class Singleton: | |
@lru_cache | |
def __new__(cls, *args, **kwargs): | |
return super().__new__(cls) |
This file contains 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 bash | |
readonly AIRFLOW_SETUP_DIR='/usr/local/airflow' | |
readonly HOST_PORT_REGEX='(@|//)([^:]+):([0-9]+)' | |
die() { echo -e "$*" ; exit 1 ; } | |
wait_for_port() { | |
local i | |
local name=${1} |
This file contains 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 | |
from __future__ import print_function | |
import os | |
import sys | |
from airflow import settings | |
from airflow.models import Connection | |
from sqlalchemy.orm import exc |
This file contains 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 bash | |
DOTFILES='https://github.com/jnalley/dotfiles.git' | |
export DEBIAN_FRONTEND=noninteractive | |
rm -vf /etc/apt/sources.list \ | |
/etc/apt/sources.list.d/*.list | |
cat > /etc/apt/preferences.d/security.pref <<EOF |