Skip to content

Instantly share code, notes, and snippets.

View spuder's full-sized avatar

Spencer Owen spuder

View GitHub Profile
@rem
@rem Author:: Seth Chisamore (<schisamo@chef.io>)
@rem Copyright:: Copyright (c) 2011-2016 Chef Software, Inc.
@rem License:: Apache License, Version 2.0
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@spuder
spuder / log.md
Created November 22, 2017 18:12
packer-1.1.2 bug
PACKER_LOG=1 /opt/packer/1.1.2/packe
r build --only=vmware-iso -var 'headless=true' windows-2012.json
...<redacted text>

Here it is finishing up several hours of windows updates

2017/11/22 09:24:27 ui:     vmware-iso: 4 Installed  KB3178539 356 K
B Security Update for Windows Server 2012 R2 (KB...
    vmware-iso: 4 Installed  KB3178539 356 KB Security Update for Wi
@spuder
spuder / Rampage.md
Last active December 29, 2017 21:10
Rampage quadcopter pids
@spuder
spuder / GT2-BF3-3.1.7.md
Last active August 15, 2017 18:25
GT2 Betaflight Configs
dump
# Betaflight / BETAFLIGHTF3 3.1.7 Apr  3 2017 / 21:43:25 (e1c4b5c)
name Spuder
resource BEEPER 1 C15
resource MOTOR 1 A06
resource MOTOR 2 A07
resource MOTOR 3 B08
@spuder
spuder / CrusherOG.md
Last active August 9, 2018 03:04
Spencers Crusher OG quad betaflight dump

Crush It quad config

# Betaflight / BETAFLIGHTF3 (BFF3) 3.4.1 Aug  2 2018 / 07:47:44 (1d99444d9) MSP API: 1.39

name SPUDER

beeper -GYRO_CALIBRATED
beeper -RX_LOST
beeper -RX_LOST_LANDING
@spuder
spuder / stock.md
Created July 8, 2017 03:21
Betaflight F3

Default config out of the box

# version
# Betaflight/BETAFLIGHTF3 3.1.0 Dec 14 2016 / 09:52:05 (ec0b52a)

# name
name -

# resources
@spuder
spuder / win2012r2.ps1
Last active May 17, 2017 22:02
Powershell patch wannacry (MS17-010)
# This is the security roll up that includes the fix for the wannaCry vuln
# It only works on 64 bit windows 8.1 and windows 2012r2 systems
# It assumes you are moderatly up to date on windows updates.
# Will proabably fail if system is way behind on updates since it won't have dependent updates installed.
# only tested on win2012r2. USE AT YOUR OWN RISK
# IT WILL REBOOT THE SYSTEM
# Create a windows task to wrap the script since [winrm is dumb and wont allow wusa.exe to execute](https://superuser.com/questions/894826/invoke-command-using-wusa-exe-in-powershell-wont-install-the-msu)
# The code to create a scheduled task [comes from here](https://github.com/hashicorp/best-practices/blob/master/packer/scripts/windows/install_windows_updates.ps1)
$command = { Invoke-WebRequest -useb -Uri "http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/02/windows8.1-kb4012213-x64_5b24b9ca5a123a844ed793e0f2be974148520349.msu" -outfile windows8.1-kb4012213-x64_5b24b9ca5a123a844ed793e0f2be974148520349.ms
@spuder
spuder / README.md
Last active April 17, 2017 19:49
packer chef-solo fails

The ubuntu 14.04 chef-solo provisioner is working (see line 216 of ubuntu14.04.json)
The ubuntu 16.04 chef-solo provisioner sometimes fails

2017/04/17 13:47:13 ui: ==> vmware-iso: Provisioning with chef-solo
==> vmware-iso: Provisioning with chef-solo
2017/04/17 13:47:13 ui:     vmware-iso: Installing Chef...
    vmware-iso: Installing Chef...
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 opening new ssh session
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 starting remote command: curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.19.36
@spuder
spuder / diatoneGT2.md
Last active July 2, 2017 16:29
Diatone GT2 200 BetaFlight Config

Stock Diatone GT2 200 (V2) Settings

D-Link F3 V2 Flight Controller + PDB

Warning

Some boards come with Betaflight 3.0.x, others come with 3.1.x