gcloud auth application-default login
A web browser should open up, asking you to authorize access .
You can set up a default tfvars for the input. For instance
project_id = "internal-lab"
aws_identity_pool_info = {
import time, sys | |
from Quartz.CoreGraphics import CGEventCreateMouseEvent | |
from Quartz.CoreGraphics import CGEventCreate | |
from Quartz.CoreGraphics import CGEventPost | |
from Quartz.CoreGraphics import CGEventGetLocation | |
from Quartz.CoreGraphics import kCGEventMouseMoved | |
from Quartz.CoreGraphics import kCGEventLeftMouseDown | |
from Quartz.CoreGraphics import kCGEventLeftMouseUp | |
from Quartz.CoreGraphics import kCGMouseButtonLeft | |
from Quartz.CoreGraphics import kCGHIDEventTap |
defmodule MyApp.Migration do | |
@moduledoc """ | |
Additional helpers for PostgreSQL. | |
""" | |
import Ecto.Migration, only: [execute: 2] | |
defmacro __using__(_) do | |
quote do | |
use Ecto.Migration |
As a note, if you find errors with the math below, please let me know.
This cost comparison only compares cost per I/O operation. It does not discuss storage or transit costs.
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
spec: | |
template: | |
spec: | |
containers: | |
- name: airflow-worker | |
resources: | |
requests: | |
memory: 2Gi | |
limits: | |
memory: 2Gi |
apiVersion: autoscaling/v2beta1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: airflow-worker | |
namespace: # use ${AIRFLOW_WORKER_NS} variable defined above | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: airflow-worker |
#!/usr/bin/env bash | |
set -e | |
PROJECT=[provide your gcp project id] | |
COMPOSER_NAME=[provide your composer environment name] | |
COMPOSER_LOCATION=[provide the selected composer’s location e.g. us-central] | |
CLUSTER_ZONE=[provide the selected composer’s zone e.g. us-central1-a] | |
# Enable autoscaling in node level | |
GKE_CLUSTER=$(gcloud composer environments describe \ |
# Luke's config for the Zoomer Shell | |
# Enable colors and change prompt: | |
autoload -U colors && colors | |
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
# History in cache directory: | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
HISTFILE=~/.cache/zsh/history |