Skip to content

Instantly share code, notes, and snippets.

View polvi's full-sized avatar

Alex Polvi polvi

  • CoreOS
  • Bend, Oregon
View GitHub Profile
@polvi
polvi / osx_bootstrap.sh
Created February 6, 2019 20:02 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)

kQuery

A jQuery like library for manipulating kubernetes objects across various popular kubernetes platforms.

Problems that kQuery addresses:

  • Easy to use client library that is accessible to a wide range of developers (javascript/jQuery)
  • Consistent client library across inconsistent kubernetes implementations (abstracts the differences between EKS/AKS/GKE/Tectonic etc)
  • Simplify building long running custom controllers or operators on k8s

Examples

@polvi
polvi / README.md
Created May 3, 2017 23:53
HDFS of Kubernetes

Easiest HDFS cluster in the world with kubernetes.

Inspiration from kimoonkim/kubernetes-HDFS

kubectl create -f namenode.yaml
kubectl create -f datanode.yaml

Setup a port-forward to so you can see it is alive:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@polvi
polvi / 3G-camera.gs
Last active August 9, 2016 19:00
app-script for taking a twilio MMS post from a 3G game camera to google drive
/* Connect your 3g game camera to google drive
* 1) buy camera: http://www.amazon.com/Covert-Special-Ops-Cellular-Camera/dp/B00806KGY6
* 2) Configure it to point to your twilio number
* 3) Deploy google app script below as a public webapp
* 4) Configure twilio to point to your app script
*/
function doGet() {
return ContentService.createTextOutput("");