This file contains 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
#!/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. |
This file contains 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
#!/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 |
This file contains 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
### 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: |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
# 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" \ |