Skip to content

Instantly share code, notes, and snippets.

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")
@pcn
pcn / .tmux.conf
Created March 11, 2014 04:50 — forked from snuggs/.tmux.conf
# SCREENSHOT EXAMPLE: http://grab.by/bzg3
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
@pcn
pcn / tmux.conf
Last active August 29, 2015 13:57 — forked from spicycode/tmux.conf
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys emacs
set -g history-limit 10000
setw -g mode-keys emacs
setw -g mode-mouse off
def to_hash_recursive(hash_thing)
new = {}
hash_thing.each do |k,v|
new[k] = v.kind_of?(Hash) ? to_hash(v) : v
end
new
end
#
# Author:: Christopher Peplin (<[email protected]>)
# Copyright:: Copyright (c) 2010 Bueda, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0