I hereby claim:
- I am rmkraus on github.
- I am rkraus (https://keybase.io/rkraus) on keybase.
- I have a public key ASBm72nfcj2gJmJyZoRnJcTenH8d4WsohJjQtHezV60K0Qo
To claim this, I am signing this object:
#!/bin/bash | |
set -o errexit | |
if [ "$KUBECONFIG" == "" ]; then | |
KUBECONFIG=~/.kube/config | |
fi | |
echo "Kubeconfig file at: $KUBECONFIG" | |
gist_id_file="$(dirname $KUBECONFIG)/.$(basename $KUBECONFIG)-gist-id" | |
## CONNECT TO AN EXISTING GIST |
#! /bin/bash | |
set -e | |
# credit: http://nparikh.org/notes/zshrc.txt | |
# Usage: extract <file> | |
# Description: extracts archived files / mounts disk images | |
# Note: .dmg/hdiutil is Mac OS X-specific. | |
extract () { | |
if [ -f $1 ]; then |
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 : | |
# | |
# Copyright (C) 2016 Guido Günther <agx@sigxcpu.org>, | |
# Daniel Lobato Garcia <dlobatog@redhat.com> | |
# | |
# This script is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
#!/usr/bin/ansible-playbook | |
# more api documentation here: | |
# https://ubntwiki.com/products/software/unifi-controller/api | |
--- | |
- name: test unifi api | |
hosts: localhost | |
gather_facts: no | |
vars: | |
unifi_user: SVC_ACCT_USERNAME |
I hereby claim:
To claim this, I am signing this object:
from homeassistant.helpers.event_decorators import HASS, track_state_change | |
from homeassistant import const | |
DOMAIN = 'mute_light' | |
DEPENDENCIES = [] | |
def setup(hass, config): | |
return True | |
""" Morse Code translator """ | |
MORSE = ['..-', '---', '....', '.--', '.---', '-', '--.-', '-..', '...', | |
'-..-', '--', '-.', '.-..', '.-', '-.-', '..', '--..', '-.-.', '.--.', | |
'--.', '-...', '-..--', '.', '.-.', '..-.', '...-', '/', ' '] | |
ALPHA = ['u', 'o', 'h', 'w', 'j', 't', 'q', 'd', 's', 'x', 'm', 'n', 'l', 'a', | |
'k', 'i', 'z', 'c', 'p', 'g', 'b', 'y', 'e', 'r', 'f', 'v', ' ', ''] | |
def translate(lkp, out, encoded, in_delim, out_delim): |
import os | |
import sys | |
import io | |
import tarfile | |
import urllib.request | |
ARCHIVE_URL = 'http://d.pr/f/YqS5+' |