Skip to content

Instantly share code, notes, and snippets.

View nicolaka's full-sized avatar

Nicola Kabar nicolaka

  • HashiCorp
  • Austin, TX
View GitHub Profile
@nicolaka
nicolaka / vim_cheatsheet.md
Created March 24, 2017 20:35 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close

Keybase proof

I hereby claim:

  • I am nicolaka on github.
  • I am nicolaka (https://keybase.io/nicolaka) on keybase.
  • I have a public key ASBRRpft05VpxrLLtl99SCs21BrimNtFTndEPtxNpwVXfgo

To claim this, I am signing this object:

@nicolaka
nicolaka / docker-compose.yml
Created February 16, 2016 06:55
HAProxy+Interlock Compose File
version : "2"
services:
interlock:
image: ehazlett/interlock:ng
command: -D run --discovery etcd://$CONTROLLER_IP:12379 --discovery-tls-ca-cert /kvcerts/ca.pem --discovery-tls-cert /kvcerts/cert.pem --discovery-tls-key /kvcerts/key.pem
volumes:
- ucp-swarm-node-certs:/certs
@nicolaka
nicolaka / docker-compose.yml
Last active February 21, 2016 03:46
NGINX+Interlock Compose File
version : "2"
services:
interlock:
image: ehazlett/interlock:ng
command: -D run --discovery etcd://$CONTROLLER_IP:12379 --discovery-tls-ca-cert /kvcerts/ca.pem --discovery-tls-cert /kvcerts/cert.pem --discovery-tls-key /kvcerts/key.pem
volumes:
- ucp-node-certs:/kvcerts
- ucp-node-certs:/certs
#!/bin/bash
while [[ $# -gt 1 ]]
do
case "$1" in
-f | --file)
file="$2"
shift 2
;;
-h | --hostname)
# Small script to trust a Docker Trusted Registry's certificate
import os
import shutil
import logging
import sys
# Logging settings
logging.basicConfig(stream=sys.stdout,level=logging.DEBUG)
# Only env var requirement
consul-bootstrapper:
image: progrium/consul
ports:
- "8300-8302:8300-8302"
- "8300-8302:8300-8302/udp"
- "8400:8400"
- "8500:8500"
command: -server -advertise $ADVERTISE_IP -bootstrap-expect 2
restart: always
name: consul-server-1