Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# kiosk-setup.sh
#
# Usage: sudo ./kiosk-setup.sh
#
# Description: This script is used for configuring and setting up a base
# [Rasbian Lite](https://www.raspberrypi.org/downloads/raspbian/) image
# to be a kinoko Kiosk.
#
# Due to this script installing packages it needs to be run as sudo.
#!/bin/bash
# shell_setup.sh
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# zsh, git-open
brew install zsh git-open wget
#iterm2
### Keybase proof
I hereby claim:
* I am gabe-ochoa on github.
* I am ochoa (https://keybase.io/ochoa) on keybase.
* I have a public key ASBZuLBR3YPM02YPyLeRThxsKMPBIrD4fBktypBMCJvR2Ao
To claim this, I am signing this object:
@gabe-ochoa
gabe-ochoa / k8s_pi_bootstrap.sh
Last active February 23, 2017 05:22
Bootstrap k8s clusters on RPi
#!/bin/bash
# Usage
# Kubernetes master node
# sudo k8s_pi_bootstrap.sh master
#
# Kubernetes worker node
# sudo k8s_pi_bootstrap.sh worker cluster_token master_ip
download_kubeadm () {
is_kubeadm_installed
@gabe-ochoa
gabe-ochoa / create_elb_for_k8s_service.rb
Created May 24, 2016 19:46
create_elb_for_k8s_service.rb
#!/usr/bin/env ruby
# Create an ELB for a kubernetes NodePort service
# Steps
# 1) Get ports of the k8s service in question
# 2) Create https ELB, attach cert to elb
# 3) Add k8s elb secuirty group
# 4) Add elb to k8s worker ASG, and instances to elb
# 5) Add specifc SG for ELB service
# Updates @server-triage group in slack to the server member specified in PageDuty for the week
require 'json'
require 'httparty'
require 'time'
require 'date'
def get_oncall_members()
# curl -H "Content-type: application/json" -H "Authorization: Token token=E7px6VVr3PVHZPJq51oa" -X GET -G \
# --data-urlencode "since=2012-08-01" \