Skip to content

Instantly share code, notes, and snippets.

View BlairLeduc's full-sized avatar

Blair Leduc BlairLeduc

View GitHub Profile
@BlairLeduc
BlairLeduc / windows.zsh-theme
Created September 6, 2022 15:06
My zsh theme I use in WSL, based on the apple theme
## Options
THEME_PROMPT_PREFIX=${THEME_PROMPT_PREFIX:-''}
THEME_VI_INS_MODE_SYMBOL=${THEME_VI_INS_MODE_SYMBOL:-'❖'}
THEME_VI_CMD_MODE_SYMBOL=${THEME_VI_CMD_MODE_SYMBOL:-'ᐅ'}
## Set symbol for the initial mode
THEME_VI_MODE_SYMBOL="${THEME_VI_INS_MODE_SYMBOL}"
autoload -Uz vcs_info
zstyle ':vcs_info:*' check-for-changes true
@BlairLeduc
BlairLeduc / kube-install.sh
Last active December 19, 2017 15:59
Installs Docker and Kubernetes on a Raspberry Pi running Stretch
#!/bin/sh
# This installs the base instructions up to the point of joining / creating a cluster
curl -sSL get.docker.com | sh && sudo usermod pi -aG docker
sudo dphys-swapfile swapoff && \
sudo dphys-swapfile uninstall && \
sudo update-rc.d dphys-swapfile remove
@BlairLeduc
BlairLeduc / zed.info.coffee
Created September 8, 2012 13:03
Revealing Module Pattern in CoffeeScript
@zed = @zed ? {}
@zed.info = do ->
#private
name = ""
getName = -> name
setName = (value) -> name = value
age = 0
getAge = -> age