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: | |
creationTimestamp: null | |
name: webserver | |
spec: | |
strategy: {} | |
template: | |
metadata: | |
creationTimestamp: null |
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
FROM gcr.io/all-the-codes/docker_base_arch:0.2 | |
ARG docker_airflow_version | |
ENV DOCKER_IMAGE_VERSION ${docker_airflow_version} | |
# Although oauth2client is already installed something downgrades it (not cryptography), so it needs to be upgraded again | |
# Install airflow and dependencies. | |
# cryptography is required for generating ferret keys. | |
RUN yaourt -Sy --noconfirm python-psycopg2 && \ | |
yaourt -Scc --noconfirm && \ |
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
[Unit] | |
Description=Minikube | |
[Service] | |
Type=oneshot | |
TimeoutStartSec=300 | |
User=kozikow | |
ExecStart=/usr/local/bin/minikube start --show-libmachine-logs=true ; \ | |
/usr/local/bin/minikube ssh "mkdir -p /home/kozikow/git_repos && sudo mount -t vboxsf git_repos /home/kozikow/git_repos" ; \ | |
/usr/local/bin/minikube ssh "mkdir -p /home/kozikow/.config && sudo mount -t vboxsf config /home/kozikow/.config" |
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 prod > airflow-prod.yaml | |
// airflow_config dev > airflow-dev.yaml | |
// In dev: |
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: autoscaling/v1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: caffe | |
namespace: echoserver | |
spec: | |
scaleTargetRef: | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
name: caffe |
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: caffe | |
namespace: echoserver | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: |
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
(defmacro my-save-excursion (&rest forms) | |
`(let* ((oldp (point)) | |
(oldbuff (current-buffer)) | |
(retval (progn ,@forms))) | |
(unless (eq (current-buffer) oldbuff) (switch-to-buffer oldbuff)) | |
(goto-char oldp) | |
etval)) | |
(defun my-helm-comint-input-ring-action (candidate) |
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
;; Awesome https://github.com/fniessen/org-html-themes | |
;; #+ATTR_HTML: :border 2 :rules groups :frame all | |
(setq org-html-table-default-attributes | |
'(:border "2" :cellspacing "0" :cellpadding "6" :rules "all" :frame | |
"all")) | |
;; Style from http://gongzhitaao.org/orgcss/ | |
(setq org-html-style-default "<style type=\"text/css\">html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}[hidden],template{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;colo |
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
[ 104.499] | |
X.Org X Server 1.18.4 | |
Release Date: 2016-07-19 | |
[ 104.500] X Protocol Version 11, Revision 0 | |
[ 104.500] Build Operating System: Linux 4.5.4-1-ARCH x86_64 | |
[ 104.501] Current Operating System: Linux kozikow-pc 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 | |
[ 104.501] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=7ced5832-ec56-453b-b4a0-94df77cb38a7 rw | |
[ 104.502] Build Date: 19 July 2016 05:54:24PM | |
[ 104.502] | |
[ 104.502] Current version of pixman: 0.34.0 |
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
# nvidia-settings: X configuration file generated by nvidia-settings | |
# nvidia-settings: version 375.26 (buildmeister@swio-display-x86-rhel47-01) Thu Dec 8 19:06:44 PST 2016 | |
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 1920 0 | |
Screen 1 "Screen1" 0 0 | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
Option "Xinerama" "0" |