Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Heath Seals heathseals

🏠
Working from home
Block or report user

Report or block heathseals

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@heathseals
heathseals / show-vmware-host-usage.rb
Created Jan 12, 2016 — forked from sschneid/show-vmware-host-usage.rb
Realtime console-based vSphere cluster usage monitoring with Ruby
View show-vmware-host-usage.rb
#!/usr/bin/ruby
require 'rubygems'
require 'yaml'
require 'rbvmomi'
require 'ruby-progressbar'
def getStats()
datacenter = $vim.serviceInstance.find_datacenter
View bash.generate.random.alphanumeric.string.sh
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
View keybase.md

Keybase proof

I hereby claim:

  • I am heathseals on github.
  • I am heathseals (https://keybase.io/heathseals) on keybase.
  • I have a public key whose fingerprint is F223 CDC1 C906 9EBF DBC3 BC7D AF76 EBC3 477B 0A93

To claim this, I am signing this object:

View ssh.rb
require 'rubygems'
require 'net/ssh'
require 'net/ssh/telnet'
class SSH
attr_accessor :errors
def initialize(creds)
begin
@ssh_session = Net::SSH.start(creds[:host], creds[:user], :password => creds[:password], :keys => [])
View gist:8848400
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5/EBeu/zHTonKYghRsKINgJmzeC1lV0SpDzCxZZa5YOhq9+B/lWERVgb8cLU4W94RTA1HBzofgwkfu5mFtHTSp7dotkWGPTJZEwc311KbrEr4UjbV9v6Vf3Ge9FD4TrpDI4vaNwJV/DVHJaMmTJ1ls5+2UyUBCT+f6wFoHwVrGCTc1Sk4TuiKtcNGK8MAL76kZBvq7ryK8K9+JpAgsE6N4rDxjpENkhN9lb26JeNuVvANshrO0EuTTTE1YqwXP5hOfltUn6owxUx6SF8NYYw/tHlmFld7Ub0f7F79cv/XWjfNFaT4agQqr6utIZ3K5XQnTlRFdvR95FuEwJkmz+Vb heath@puppetlabs.com
View gist:6342473
[ ! -d ~/.chef ] && mkdir -p ~/.chef
cat<<EOF > ~/.chef/knife.rb
knife[:vsphere_host] = "virtualcenter.eftdomain.net"
knife[:vsphere_user] = "${LOGNAME}"
knife[:vsphere_pass] = "${WINDOWS_PASSWORD}"
knife[:vsphere_dc] = "Nashville"
knife[:vsphere_insecure] = true
EOF
chmod 600 .chef/knife.rb
proxyon; export GEM_HOME=~/lib; gem install knife-vsphere --no-ri --no-rdoc
View gist:1386023
vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0 --nicorderpolicy-standby=vmnic1 vSwitch0 'Management Network'
vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic1 --nicorderpolicy-standby=vmnic0 vSwitch0 VMkernel
should be
vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0 --nicorderpolicy-standby=vmnic3 vSwitch0 'Management Network'
vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic3 --nicorderpolicy-standby=vmnic0 vSwitch0 VMkernel
View ruby-enterprise.spec
# Package Maintainer: Increment phusion_release to match latest release available
%define phusion_release 2011.03
Summary: Ruby Enterprise Edition (Release %{phusion_release})
Name: ruby-enterprise
Vendor: Phusion.nl <info@phusion.nl>
Packager: Adam Vollrath <hosting@endpoint.com>
Version: 1.8.7
Release: 8.%{dist}
License: Ruby or GPL v2
View gist:806061
MD5 (/Users/heath/Downloads/iPhone3,1_4.1_8B117_Restore.ipsw) = ac3031a7b5c013d6a09952b691985878
You can’t perform that action at this time.