Skip to content

Instantly share code, notes, and snippets.


Spencer Owen spuder

View GitHub Profile
agnoster /
Last active May 13, 2023 14:50
My ZSH Theme


A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

spuder / LICENSE.txt
Last active February 13, 2023 17:43
python script to generate .pdf and .gerber files from a kicad project
View LICENSE.txt
MIT License
Copyright (c) [spuder] 2022
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
kwilczynski /
Last active July 22, 2022 08:07
Recipe / Role check in Chef

If you want to check whether a node run_list includes a specific role (upon expansion), then you could use role? method on the Node object:


Alternatively, you can see whether either would work for you:



kevinkarwaski / multi_env_knife_config
Created February 18, 2012 19:06
Knife config for Multiple Chef Environments
View multi_env_knife_config
# This is an example of a knife.rb configuration that uses yml and a
# simple env var (CHEF_ENV) to manage multiple hosted Chef environments.
# Example usage:
# export CHEF_ENV=evnironment_01
# knife status
# Based on:
spuder /
Last active January 26, 2019 00:06
f5 powershell cmdlets

Add-PSSnapin iControlSnapin;

Api docs

Authenticate to F5

if ( (Get-PSSnapin -Name iControlSnapin -ErrorAction SilentlyContinue) -eq $null ) {Add-PsSnapin iControlSnapin -ErrorAction Stop}
$F5Connected = ((Get-F5.iControl).initialized -and (Get-F5.iControl).ConnectionInfo.hostname -eq $LoadBalancer)
if ($F5Connected) {
    Write-Verbose "F5 connection already initialized"
spuder / .bash_profile
Last active April 12, 2018 13:19
View .bash_profile
# Import the bash_ps1, adds dotted lines after every command
if [ -f "$HOME/.bash_ps1" ]; then
. "$HOME/.bash_ps1"
export CLICOLOR=1
ryanycoleman / links
Last active March 28, 2018 17:44
links from 2014 puppetconf contributor summit lightning talks
View links
spuder /
Last active April 23, 2017 17:40
A script that pulls my bash profile from gists stored on github
#Usage: Execute the following command:
curl -L | bash -x
spuder /
Last active March 1, 2017 15:16
Dashing cookbook

Working cookbook for dashing

First you need to install RVM. This installs sitewide as root, which really is a bad idea unless no one else uses this machine.

sudo apt-get update; apt-get install curl -y
command curl -sSL | gpg --import -
\curl -sSL | sudo bash