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
{ config, pkgs, ... }: | |
{ | |
security.pam.enableSudoTouchIdAuth = true; | |
networking.hostName = "mbp"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = | |
[ |
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
#!/bin/bash | |
# set -e | |
# shellcheck disable=SC2178,SC2128 | |
# time to wait for deployments to be healthy | |
wait_limit=${1:-900} # default set to 15 mins | |
# nodes to patch in a single go | |
max_nodes=${2:-50} # default set to max 50 nodes |
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
#!/bin/bash | |
# get error messages from groups | |
g=$(groups 2>&1 > /dev/null) | |
if [ -z "${g}" ]; then | |
# pull gid from error message | |
gid=${g/groups: cannot find name for group ID/} | |
# create a group with the missing gid | |
groupadd --gid "$gid" efs | |
fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Cluster config | |
region = "ap-southeast-2" | |
owner = "deacepticons" | |
cluster_name = "dea-sandbox" | |
cluster_version = "1.13" | |
admin_access_CIDRs = { | |
"Everywhere" = "0.0.0.0/0" | |
} | |
users = [ | |
"user/tbutler" |
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
#!/bin/bash | |
# Install k3d | |
k3d --version || wget -q -O - https://raw.githubusercontent.com/rancher/k3d/master/install.sh | bash | |
# verify it | |
k3d check-tools | |
# create a volume and cluster | |
docker volume create kube-volume |
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
#!/bin/bash | |
set -e | |
# Install k3d | |
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/master/install.sh | bash | |
# verify it | |
k3d --version | |
k3d check-tools |
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 boto3 | |
import click | |
import json | |
import schedule | |
from time import sleep | |
from hashlib import md5 | |
from yaml import load | |
from functools import partial | |
from datetime import date, datetime, timedelta |
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
# coding: utf-8 | |
import os | |
import boto3 | |
from botocore.handlers import disable_signing | |
import logging | |
BUCKET_NAME='dea-public-data' | |
BUCKET_PATH='L2/sentinel-2-nrt/S2MSIARD/2018-07-30/S2B_OPER_MSI_ARD_TL_EPAE_20180730T055204_A007293_T51KVV_N02.06/' | |
def get_files(bucket_name, prefix): |
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
[default] | |
region = ap-southeast-2 | |
[profile prod-admin] | |
source_profile = default | |
role_arn = arn:aws:iam::123456789012:role/write | |
mfa_serial = arn:aws:iam::0987654321098:mfa/uname | |
[profile prod-read] |
NewerOlder