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.
with ignored(OSError): | |
os.remove('file.txt') | |
# izip, iter(partial(f, 1), '') | |
# vars(obj) |
from abc import ABC, abstractmethod | |
class Validator(ABC): | |
def __set_name__(self, owner, name): | |
self.private_name = f'_{name}' | |
def __get__(self, obj, objtype=None): | |
return getattr(obj, self.private_name) | |
def cmd(cm: str): | |
import subprocess | |
import re | |
return subprocess.run(re.compile("\s+").split(cm)) |
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 |