Skip to content

Instantly share code, notes, and snippets.

@tgautier
tgautier / keybase.md
Last active August 1, 2016 09:54
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

types:
addition: "93c95c"
environment: "fad9c9"
experience: "ffc27a"
feedback: "cc317c"
improvement: "63c0fd"
inactive: "d3dbe2"
mindless: "fef2c0"
pending: "fbc92f"
platform: "c1d5f1"
#!/bin/bash
VLC_BIN="/Applications/VLC.app/Contents/MacOS/VLC"
CHANNEL="/di_vocaltrance_aacplus"
if [ "$1" ]; then
CHANNEL="$1"
fi
if [ "$2" ]; then
VLC_BIN=`which $2`
shift
shift
@tgautier
tgautier / just_an_elixir_fizzbuzz.ex
Created July 19, 2017 09:09
Just an Elixir FizzBuzz
defmodule FizzBuzz do
def fizzbuzz(n) do
Enum.map 1..n, &fizzify(&1)
end
def fizzify(i) do
case {rem(i, 3), rem(i, 5), i} do
{0, 0, _} -> "FizzBuzz"
{0, _, _} -> "Fizz"
{_, 0, _} -> "Buzz"
### Keybase proof
I hereby claim:
* I am tgautier on github.
* I am tgautier (https://keybase.io/tgautier) on keybase.
* I have a public key whose fingerprint is 6AB7 E4B8 1F12 84D0 E827 D14A D191 C915 D3C2 35FD
To claim this, I am signing this object:
@tgautier
tgautier / kubedf
Created January 10, 2020 18:01 — forked from redmcg/kubedf
Bash script to show k8s PVC usage
#!/usr/bin/env bash
KUBEAPI=127.0.0.1:8001/api/v1/nodes
function getNodes() {
curl -s $KUBEAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\