Skip to content

Instantly share code, notes, and snippets.

@shellbj
shellbj / vsphere-plugin-mac-change.rb
Created May 31, 2013 15:16
Knife VSphere plugin we use to change the MAC address on the cloned VM's network adapter.
require 'rbvmomi'
class KnifeVspherePlugin
def data=(cplugin_data)
@mac_address = cplugin_data
end
def reconfig_vm(target_vm)
if (!@mac_address)
abort ("MAC address not provided")
@shellbj
shellbj / build.gradle
Created April 12, 2013 16:34
Gradle build file for the class assignments for Functional Programming Principles in Scala on Coursera
apply plugin: "scala"
apply plugin: "eclipse"
apply plugin: "maven"
version = "1.0"
group = "org.coursera"
ext {
scalaVersion = "2.10.1"
}