I hereby claim:
- I am dwardu89 on github.
- I am dwardu (https://keybase.io/dwardu) on keybase.
- I have a public key ASBGX5zIHiAggpLE1fNG5XhlETRr60ld63emdyfytP2QFgo
To claim this, I am signing this object:
''' | |
A skeleton for an AWS lambda function that will ultimately be used to output an | |
Alexa skill. | |
''' | |
def lambda_handler(event, context): | |
''' | |
Do work over here | |
''' |
I hereby claim:
To claim this, I am signing this object:
''' | |
A python representation of a Trie data structure. | |
''' | |
class trie_node: | |
def __init__(self): | |
self.value = None | |
self.children = dict() |
0 |
#!/bin/bash | |
# This script assumes that your aws cli is able to connect to the bucket you want to purge | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
#!/usr/bin/env bash | |
RANDOM_PASSWORD=$(date +%s | sha256sum | base64 | head -c 32 ; echo) | |
echo $RANDOM_PASSWORD |
package main | |
import ( | |
"golang.org/x/oauth2/google" | |
"google.golang.org/api/storagetransfer/v1" | |
"fmt" | |
"log" | |
"golang.org/x/net/context" |
# Create all variables used in this Terraform run | |
variable "aws_access_key" {} | |
variable "aws_access_secret_key" {} | |
variable "aws_bucket_name" {} | |
variable "aws_region_main" { | |
default = "eu-west-1" | |
} | |
variable "aws_region_replica" { | |
default = "eu-central-1" | |
} |
#!/usr/bin/env bash | |
code --list-extensions | awk '{print "code --install-extension " $1}' |
I run several K8S cluster on EKS and by default do not setup inbound SSH to the nodes. Sometimes I need to get into each node to check things or run a one-off tool.
Rather than update my terraform, rebuild the launch templates and redeploy brand new nodes, I decided to use kubernetes to access each node directly.