Skip to content

Instantly share code, notes, and snippets.

jedi4ever / gist:818432
Created February 9, 2011 13:00
create vagrant - lucid box with veewee
gem instal veewee
#if needed replace amd64 with i386
vagrant basebox define 'lucid-box' 'ubuntu-10.04.1-server-amd64'
#for tweeking look at definitions/lucid-box/
vagrant basebox build 'lucid-box'
vagrant basebox export 'lucid-box'
jedi4ever / Scripted Install.cfg - Freebsd
Created February 11, 2011 09:20
Why is sysinstall not creating the partitions?
dd if=/dev/zero of=/dev/ad4 count=2
#bsdlabel -wB /dev/ad4
sysctl kern.geom.debugflags=16
cat <<EOF >/install.cfg
# This is the installation configuration file for our rackmounted FreeBSD
# cluster machines
## VagrantFile
config.vm.provision :puppet do |puppet|
puppet.pp_path = "/tmp/vagrant-puppet"
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.manifest_file = "newbox.pp"
## modules/newbox.pp (what the box needs)
include pxe-server
jedi4ever / gist:838373
Created February 22, 2011 08:29
Bootstrap Freebsd with veewee
dd if=/dev/zero of=/dev/ad4 count=2
#bsdlabel -w -B /dev/ad4
sysctl kern.geom.debugflags=16
# Init the disk with an MBR
gpart create -s mbr ad4
# Create a BSD container
jedi4ever / apt_default.rb
Created March 2, 2011 13:23
Adapted chef apt default recipe
# Adapted because otherwise it will do an update everytime
# Cookbook Name:: apt
# Recipe:: default
# Copyright 2008-2009, Opscode, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
jedi4ever / gist:861463
Created March 9, 2011 00:51
veewee install transcript json / cucumber
falcon-pdb:~ patrick$ cd v/
= RVM has encountered a not yet trusted .rvmrc file in the =
= current working directory which may contain nasty code. =
= =
= Examine the contents of this file to be sure the contents =
= are good before trusting it! =
jedi4ever / dpkg-gnutar
Created March 17, 2011 08:41
homebrew formula to get dpkg working a mac
require 'formula'
class Tar <Formula
url ''
homepage ''
md5 '00d1e769c6af702c542cca54b728920d'
# depends_on 'cmake'
def install
jedi4ever / rakelogger.rb
Created March 17, 2011 12:15
could not find a good example on the new rake integration + integrated logging It's ugly but working
class RakeLogger < Vagrant::UI
def initialize(env,logger)
@logger = logger
[[:warn, :yellow], [:error, :red], [:info, nil], [:confirm, :green]].each do |method, color|
class_eval <<-CODE
def #{method}(message, opts=nil)
@logger.warn("\#{line_reset}\#{format_message(message, opts)}")
jedi4ever / gist:882912
Created March 23, 2011 10:29
blueprint out of memory
#ID = "ami-cef405a7" = x64 Ubuntu 10.10
:image_id => 'ami-cef405a7', :flavor_id => 't1.micro',
# [blueprint] searching for PEAR/PECL packages
# [blueprint] searching for Python packages
# [blueprint] searching for Ruby gems
# [blueprint] searching for configuration files
# [blueprint] searching for software built from source
# [blueprint] searching for apt packages
jedi4ever / gist:897912
Created April 1, 2011 08:58
Enabling winrm in AutoUnattend.xml - Currently fails
<?xml version="1.0" encoding="utf-8"?>
Unattended installation file for Windows 7 x64. Place in the root directory of a USB drive.
Important! Before using, change the Product Key and Administrator's password.
Make sure the partition number and physical disk number are correct for your system.
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="" xmlns:xsi="">