Skip to content

Instantly share code, notes, and snippets.

View davehowell's full-sized avatar
🏠
Working from home - just like you

David Howell davehowell

🏠
Working from home - just like you
View GitHub Profile
# THE WSL2 with Ubuntu 20.04 and bash 5.0 edition. Mainly for VSCode usage
# This is just the customized parts
# if you can only use /usr/bin/python3 because public apt repo is blocked
alias python='python3'
#create a python venv within project dir using current python
# python -m venv .venv
alias vnv='source ./.venv/bin/activate'
## Compute Engine
MIG - managed instance groups (for autoscaling)
- lift n shift, where you don't want to refactor
## Kubernetes Engine GKE
- managed, cloud-native K8s
- supports complex configurations
- capable, but complex, e.g. complex manifests
- autopilot helps scale-on-demand
@davehowell
davehowell / AWS Data and Analytics New Services.md
Last active February 17, 2023 05:52
AWS Reinvent 2022 Recap

AWS Re:invent recap Feb 2023

Redshift

Aurora to Redshift serverless “zero ETL” transaction replication

  • MySQL flavour only
  • Redshift serverless only
  • Create an “integration” on the Aurora side
  • Create database from integration on redshift side
  • Cannot replicate deletes
@davehowell
davehowell / Answers.md
Last active April 6, 2023 05:37
databricks
@davehowell
davehowell / merge-schemas.scala
Created October 19, 2021 10:38 — forked from eduardorost/merge-schemas.scala
Merge Schema with structs
import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.types._
import org.slf4j.{Logger, LoggerFactory}
object Main {
val logger: Logger = LoggerFactory.getLogger(this.getClass)
private lazy val sparkConf: SparkConf = new SparkConf()
.setMaster("local[*]")
version: 2
jobs:
terraform-validate:
docker:
- image: docker.mirror.hashicorp.services/hashicorp/terraform:light
steps:
- checkout
- run:
name: Terraform Validate
command: |
@davehowell
davehowell / docker.md
Last active November 15, 2022 07:52
docker
@davehowell
davehowell / pyenv.md
Last active May 6, 2021 11:59
python
@davehowell
davehowell / aws-sts-functions.sh
Created February 9, 2021 15:05 — forked from strebitz/aws-sts-functions.sh
Obtain AWS STS session-tokens with BASH for multiple awscli profiles or an IAM role ARN
#!/bin/bash
# Add these functions to your bash_profile or bash_rc
# Dependencies:
# - awscli - AWS command line client
# - jq - Command-line JSON processor
function cfn-validate-template() {
for template in $@
do