Skip to content

Instantly share code, notes, and snippets.

View eliheady's full-sized avatar
👋
Available

Eli Heady eliheady

👋
Available
View GitHub Profile
apiVersion: v1
kind: ReplicationController
metadata:
name: service-loadbalancer
labels:
app: service-loadbalancer
version: v1
spec:
replicas: 1
selector:
@eliheady
eliheady / https-sticky.md
Created February 19, 2018 18:54 — forked from bprashanth/https-sticky.md
https sticky sessions

Create a backend service that simply serves the pod name, and a frontend haproxy instance that balances based on client cookies.

# This is the backend service
apiVersion: v1
kind: Service
metadata:
  name: hostname
  annotations:
    # Enable sticky-ness on "SERVERID"
    serviceloadbalancer/lb.cookie-sticky-session: "true"
@eliheady
eliheady / gmail-reports.py
Created October 16, 2017 13:25
get attachments from gmail messages
#!/usr/bin/env python
# collect attachments from messages identified by label and date
# taken from Gmail API Python Quickstart
from __future__ import print_function
import httplib2
import os
import sys
@eliheady
eliheady / _INSTALL.md
Created June 2, 2017 16:07 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@eliheady
eliheady / dhcpd.conf
Created June 2, 2017 16:07 — forked from robinsmidsrod/dhcpd.conf
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;