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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config keyboardLayout dvorak | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false |
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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config keyboardLayout dvorak | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Remap F19 to mod2</name> | |
<appendix>OS X doesn't have a Hyper. Remap F19 to Control + Shift + Option.</appendix> | |
<identifier>f19_to_ctrl_shift_opt</identifier> | |
<autogen> | |
--KeyToKey-- |
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
def await_instances_ready(instances: List[str]): | |
""" | |
Block until all instances in the list become ready. | |
Args: | |
instances: List of instances external IPs. | |
Raises: | |
Exception: If we do not own given external IPs. | |
""" |
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
def log_exception(e, message_format="{} Exception"): | |
logger.log_struct({ | |
"message": message_format.format(type(e)), | |
"exc_info": traceback.format_exc(limit=20).split("\n") | |
}, severity="ERROR") |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: worker | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: airflow |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: web | |
labels: | |
app: web | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 |
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
package main | |
import ( | |
"os" | |
"k8s.io/client-go/1.4/pkg/api" | |
"k8s.io/client-go/1.4/pkg/runtime/serializer/json" | |
"k8s.io/client-go/1.4/pkg/util/intstr" | |
) |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"k8s.io/client-go/1.4/pkg/api/unversioned" | |
"k8s.io/client-go/1.4/pkg/api/v1" | |
"k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" | |
"k8s.io/client-go/1.4/pkg/runtime" |
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
// Generate airflow config to stdout. | |
// To start service the from scratch, put this in src/airflow_config/airflow_config.go and run: | |
// export GOPATH=$(pwd) | |
// export PATH=$PATH:$GOPATH/bin | |
// go get k8s.io/client-go/1.4/kubernetes | |
// go install airflow_config && airflow_config > airflow.yaml | |
// kubectl create -f airflow.yaml | |
package main | |
import ( |
OlderNewer