Skip to content

Instantly share code, notes, and snippets.

Patrick Debois jedi4ever

Block or report user

Report or block jedi4ever

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
jedi4ever / gist:818432
Created Feb 9, 2011
create vagrant - lucid box with veewee
View gist:818432
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 Feb 11, 2011
Why is sysinstall not creating the partitions?
View Scripted Install.cfg - Freebsd
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
View gist:827638
## 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 Feb 22, 2011
Bootstrap Freebsd with veewee
View gist:838373
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 Mar 2, 2011
Adapted chef apt default recipe
View apt_default.rb
# 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 Mar 9, 2011
veewee install transcript json / cucumber
View gist:861463
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 Mar 17, 2011
homebrew formula to get dpkg working a mac
View dpkg-gnutar
require 'formula'
class Tar <Formula
url ''
homepage ''
md5 '00d1e769c6af702c542cca54b728920d'
# depends_on 'cmake'
def install
jedi4ever / rakelogger.rb
Created Mar 17, 2011
could not find a good example on the new rake integration + integrated logging It's ugly but working
View rakelogger.rb
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 Mar 23, 2011
blueprint out of memory
View gist:882912
#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 Apr 1, 2011
Enabling winrm in AutoUnattend.xml - Currently fails
View gist:897912
<?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="">
You can’t perform that action at this time.