Skip to content

Instantly share code, notes, and snippets.

View spuder's full-sized avatar

Spencer Owen spuder

View GitHub Profile
@spuder
spuder / log.md
Created February 1, 2017 00:44
onion
BusyBox v1.25.1 () built-in shell (ash)

   ____       _             ____
  / __ \___  (_)__  ___    / __ \__ _  ___ ___ ____ _
 / /_/ / _ \/ / _ \/ _ \  / /_/ /  ' \/ -_) _ `/ _ `/
 \____/_//_/_/\___/_//_/  \____/_/_/_/\__/\_, /\_,_/
 W H A T  W I L L  Y O U  I N V E N T ? /___/
 -----------------------------------------------------
   Ω-ware: 0.1.5 b130
@spuder
spuder / ubuntu-16.04-amd64.json
Created January 13, 2017 19:34
bento packer config that makes single vmdk
{
"builders": [
{
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
@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 January 9, 2017 03:01
eachine 180 cleanflight config - stock
@spuder
spuder / windows-2012.json
Created November 23, 2016 16:04
packer stops after an hour
{
"builders": [
{
"communicator": "winrm",
"floppy_files": [
"scripts/windows/2012_r2/Autounattend.xml",
"scripts/windows/common/oracle.cer",
"scripts/windows/common/postunattend.xml",
"scripts/windows/common/PackerShutdown.bat",
"scripts/windows/common/nutanix.cer",
@spuder
spuder / f5.md
Last active January 26, 2019 00:06
f5 powershell cmdlets

Add-PSSnapin iControlSnapin;

Api docs https://devcentral.f5.com/wiki/iControl.APIReference.ashx

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
spuder / 0_reuse_code.js
Created November 15, 2016 23:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@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 / artifactory.rb
Created October 21, 2016 20:18
Install artifactory from packages with chef
apt_repository 'artifactory' do
uri 'https://jfrog.bintray.com/artifactory-pro-debs'
distribution node['lsb']['codename']
components ['main']
key 'https://bintray.com/user/downloadSubjectPublicKey?username=jfrog'
action :add
end
package 'jfrog-artifactory-pro' do
action :install