Skip to content

Instantly share code, notes, and snippets.

View spuder's full-sized avatar

Spencer Owen spuder

View GitHub Profile
@spuder
spuder / Vagrantfile.txt
Last active August 29, 2015 14:03
Spencers standard go to vagrant file, includes 3 major releases
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "../", "/vagrant_data" # Mount directory up a level so puppet module list can find modules
config.vm.synced_folder ".", "/vagrant"
@spuder
spuder / build.sh
Last active August 29, 2015 14:03
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
@spuder
spuder / ubuntu-clean.sh
Created February 12, 2015 22:28
Clean Ubuntu machines for provisioning
# Remove items used for building, since they aren't needed anymore
#https://github.com/riywo/packer-example/blob/master/scripts/cleanup.sh
set -x
#Stop Logging
service rsyslog stop
# Clean Logging
logrotate –f /etc/logrotate.conf
rm –f /var/log/*-???????? /var/log/*.gz
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#
@spuder
spuder / format.ps1
Created November 10, 2016 19:34
Formats empty volumes on windows
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
spuder / README.md
Last active January 8, 2017 05:15
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
  • RX_PARALLEL_PWM
@spuder
spuder / README.md
Last active March 1, 2017 15:16
Dashing cookbook

Working cookbook for dashing

https://github.com/benbria/dashing-chef

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 https://rvm.io/mpapis.asc | gpg --import -
\curl -sSL https://get.rvm.io | sudo bash
@spuder
spuder / setup-spencers-bash.sh
Last active April 23, 2017 17:40
A script that pulls my bash profile from gists stored on github
#!/bin/bash
#Usage: Execute the following command:
<<COMMENT1
curl -L https://gist.github.com/spuder/11360474/raw/ | bash -x
COMMENT1
@ryanycoleman
ryanycoleman / links
Last active March 28, 2018 17:44
links from 2014 puppetconf contributor summit lightning talks