Skip to content

Instantly share code, notes, and snippets.


Spencer Owen spuder

View GitHub Profile
spuder /
Last active Jan 8, 2017
Spencers Eachine 180 Tilt Rotor Cleanflight Config

These are my actual configs.

To see stock tiltrotor 180 configs see this gist

I had to order a replacment flight controller. The replacement I ordered looked dirty and used. It also didn't sync with fly sky transmitter and spun motors on arm).

Changes from stock

  • Do not spin motors
  • iBus
spuder /
Last active Jan 26, 2019
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 / format.ps1
Created Nov 10, 2016
Formats empty volumes on windows
View format.ps1
Write-Host "Initializing and formatting raw disks"
$disks = Get-Disk | where partitionstyle -eq 'raw'
## start at F: because D: is reserved in Azure and sometimes E: shows up as a CD drive in Azure
$letters = New-Object System.Collections.ArrayList
$letters.AddRange( ('F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') )
Function AvailableVolumes() {
$currentDrives = get-volume
spuder /
Last active May 26, 2021
python script to generate .pdf and .gerber files from a kicad project
Heavily borrowed from this location:
Takes 2 parameters
1. Path to kicad file
2. Location of where to save pdfs
A python script example to create various plot files from a board:
spuder /
Last active Mar 1, 2017
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
spuder /
Created Feb 12, 2015
Clean Ubuntu machines for provisioning
# Remove items used for building, since they aren't needed anymore
set -x
#Stop Logging
service rsyslog stop
# Clean Logging
logrotate –f /etc/logrotate.conf
rm –f /var/log/*-???????? /var/log/*.gz
kwilczynski /
Last active Mar 21, 2021
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:



ryanycoleman / links
Last active Mar 28, 2018
links from 2014 puppetconf contributor summit lightning talks
View links
spuder /
Last active Aug 29, 2015
Docker build script
#!/usr/bin/env bash
# A simple script to build a docker container
# Pre and Post functions are where you place any optional commands (eg. git clone)
# Sets name for docker container docker build -t 'foo/bar:latest
readonly DOCKER_USER='foo'
readonly DOCKER_NAME='bar'
readonly DOCKER_TAG='latest'
# Mac and boot2docker don't use root for docker command