Skip to content

Instantly share code, notes, and snippets.

file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
@fishnix
fishnix / gist:4692582
Created February 1, 2013 17:01
messing with rbvmomi
require 'rbvmomi'
require 'awesome_print'
datacenter = 'SCI_DC_01'
vm_name = 'vm-vslabapp-06'
vim = RbVmomi::VIM.connect host: '192.168.111.41', user: 'XXXXXXXXX', password: 'XXXXXXX', insecure: true
dc = vim.serviceInstance.find_datacenter(datacenter) or abort "datacenter not found"
vm = dc.find_vm("VRM/#{vm_name}") or abort "VM not found"
@fishnix
fishnix / scalr_scratch
Created December 18, 2012 20:10
scalr scratch
yum install httpd mysql mysql-server php net-snmp-utils bind
yum install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl php-php-gettext php-mcrypt php-pecl-ssh2 php-pear-SOAP php-snmp php-pear-HTTP
Not found in YUM:
sockets
SimpleXML
mhash
pcntl
posix
dom
{"@source":"tcp://172.28.51.163:4560/client/172.28.51.163:51093","@tags":[],"@fields":{"priority":"INFO","logger_name":"org.jasig.cas.services.DefaultServicesManagerImpl","thread":"scheduler_Worker-9","class":"?","file":"?:?","method":"?"},"@type":"logstash_log4j","@source_host":"172.28.51.163:51093","@source_path":"org.jasig.cas.services.DefaultServicesManagerImpl","@message":"Loaded 0 services.","@timestamp":"2012-12-06T20:00:57.974Z"}
@fishnix
fishnix / gist:4220618
Created December 5, 2012 23:52
graphite install centos 6.3 scratch
# python --version
Python 2.6.6
yum install pycairo pycairo-devel Django django-tagging python-zope-interface python-memcached python-twisted fontconfig gnu-free* httpd mod_wsgi
mkdir /usr/local/graphite
cd /usr/local/graphite
git clone https://github.com/graphite-project/graphite-web.git
git clone https://github.com/graphite-project/carbon.git
@fishnix
fishnix / definition.rb
Created July 11, 2012 15:52
Veewee for rhel63
Veewee::Session.declare({
:cpu_count => '1', :memory_size=> '512',
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
:os_type_id => 'RedHat_64',
:iso_file => "rhel-server-6.3-x86_64-dvd.iso",
:iso_md5 => "d717af33dd258945e6304f9955487017", :iso_download_timeout => 1000,
:boot_wait => "10", :boot_cmd_sequence => [
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
],
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
@fishnix
fishnix / jbossNode.cf
Created July 10, 2012 15:58
jbossNode bundle
############################################################################
#
# JBoss Node management
#
# Configures individual Yale JBoss Node
#
# ECF 20120627
#
# Parameter list:
# jboss_ver = jboss version
@fishnix
fishnix / agent_run
Created July 9, 2012 14:34
cfengine cfagent puke without promises.cf on 3.1 agent
cf3 Cfengine - autonomous configuration engine - commence self-diagnostic prelude
cf3 ------------------------------------------------------------------------
cf3 Work directory is /var/cfengine
cf3 Making sure that locks are private...
cf3 Checking integrity of the state database
cf3 Checking integrity of the module directory
cf3 Checking integrity of the PKI directory
cf3 Looking for a source of entropy in /var/cfengine/randseed
cf3 -> Loaded private key /var/cfengine/ppkeys/localhost.priv
cf3 -> Loaded public key /var/cfengine/ppkeys/localhost.pub
@fishnix
fishnix / README.txt
Created July 8, 2012 17:00
s9y vagrant dev sandbox
-- Install Virtualbox
https://www.virtualbox.org/wiki/Downloads
-- Install a git client if you don't have one
-- Install Vagrant
http://vagrantup.com/
-- get a copy of my chef cookbooks
cd ~/tmp/vagrant_projects