This file contains hidden or 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
| --- ~ » cat ~/.minikube/machines/minikubeVM/minikubeVM/Logs/VBox.log | |
| VirtualBox VM 5.1.4_OSE r110228 linux.amd64 (Aug 22 2016 23:24:52) release log | |
| 00:00:00.012258 Log opened 2016-09-05T15:02:18.932291000Z | |
| 00:00:00.012259 Build Type: release | |
| 00:00:00.012261 OS Product: Linux | |
| 00:00:00.012262 OS Release: 4.7.2-1-ARCH | |
| 00:00:00.012263 OS Version: #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 | |
| 00:00:00.012277 DMI Product Name: 20FBCTO1WW | |
| 00:00:00.012282 DMI Product Version: ThinkPad X1 Carbon 4th |
This file contains hidden or 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
| ;;;; Helm ;;;; | |
| (require 'helm) | |
| (require 'helm-mode) | |
| ;; (require 'helm-config) | |
| (helm-mode 1) | |
| (global-set-key (kbd "M-A") 'helm-M-x) | |
| ;; (global-set-key (kbd (ht-get intellij-keymap-ht "GotoAction" "M-A")) 'helm-M-x) | |
| (global-unset-key (kbd "M-1")) |
This file contains hidden or 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
| ;; TODO Check out helm--push-mark | |
| (defun record-global-position-for-back-button (&rest not-used-args) | |
| "Push mark, and add it to `global-mark-ring'. | |
| This function differs from `push-mark' in that `global-mark-ring' | |
| is always updated." | |
| (let (location (point-marker)) | |
| (callf or location (point)) | |
| (push-mark location) | |
| ;; (when (and (eq consecutives 'limit) |
This file contains hidden or 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 ( |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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. | |
| """ |