Skip to content

Instantly share code, notes, and snippets.

View gwythaint's full-sized avatar

David Holloway gwythaint

View GitHub Profile
#!/bin/sh
# kubedeployshell.sh
# run a shell on a kubernetes container based on deployment name
cmd=/bin/bash
function help() {
echo "usage: $0 [options] deployment [container]"
echo " [-h] display this help command"
echo " [-c command] command to execute on container"
@v2e4lisp
v2e4lisp / init.el
Created January 6, 2013 15:30
plist-to-alist fix the bug of the color-theme for emacs 24
(defun plist-to-alist (the-plist)
(defsubst get-tuple-from-plist (the-plist)
(when the-plist
(cons (car the-plist) (cadr the-plist))))
(let ((alist '()))
(while the-plist
(add-to-list 'alist (get-tuple-from-plist the-plist))
(setq the-plist (cddr the-plist)))
alist))