Skip to content

Instantly share code, notes, and snippets.

View jasherai's full-sized avatar

Pritesh jasherai

  • Phatforge
  • London
View GitHub Profile
[[ ! -z ${rvm_gemset_name} ]] && {
[[ -s "${rvm_gemset_name}.gems" ]] && {
echo "Importing gemset gems from file : [${rvm_gemset_name}.gems]"
rvm gemset import ${rvm_gemset_name}.gems
}
}
[ "$(which bundle)" == "" ] && { gem install bundle; }
@jasherai
jasherai / snippet.txt
Created June 22, 2010 08:39 — forked from danielsdeleo/snippet.txt
including the upstart provider for lucid service
service "mysql" do
# other stuff...
provider Chef::Provider::Service::Upstart
end
pmehta@nightscape [PF]{30} ~/workspace/git-sites.d/deployment $ be vagrant up chef_server_builder
[chef_server_builder] Creating VM 'chef_server_builder'
[chef_server_builder] Importing base VM (/home/pmehta/.vagrant/boxes/lucid_base/box.ovf)...
[chef_server_builder] Persisting the VM UUID (559352c5-18ad-4680-89fe-e67788098b22)...
[chef_server_builder] Matching MAC addresses...
[chef_server_builder] Running any VM customizations...
/home/pmehta/.rvm/gems/ruby-1.9.2-head@run/bundler/gems/virtualbox-12b7f37862175e78d833352593230bc374c3b9fc-master/lib/virtualbox/com/implementer/ffi.rb:95:in `call_and_check': Error in API call to save_settings: 2147500037 (VirtualBox::Exceptions::FFIException)
from /home/pmehta/.rvm/gems/ruby-1.9.2-head@run/bundler/gems/virtualbox-12b7f37862175e78d833352593230bc374c3b9fc-master/lib/virtualbox/com/implementer/ffi.rb:69:in `call_vtbl_function'
from /home/pmehta/.rvm/gems/ruby-1.9.2-head@run/bundler/gems/virtualbox-12b7f37862175e78d833352593230bc374c3b9fc-master/lib/virtualbox/com
.
|-- compreg.dat
|-- HardDisks
| |-- lucid_base.vdi
| `-- lucid_base.vmdk
|-- Machines
| |-- Chef_Builder
| | `-- lucid_base_1.xml-prev
| |-- lucid_base
| | |-- Logs
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Gui mode option for debugging use
config.vm.boot_mode = "gui"
## VM Definitions
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Gui mode option for debugging use
config.vm.boot_mode = "gui"
config.vm.box = "lucid32"
config.vm.network("10.0.10.100")
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Gui mode option for debugging use
config.vm.boot_mode = "gui"
config.vm.box = "lucid32"
pmehta@nightscape [PF]{19} ~/workspace/git-sites.d/deployment $ bundle exec vagrant up
[default] Importing base box 'lucid32'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM 'default' already created. Booting if its not already running...
[default] Deleting any previously set forwarded ports...
[default] Forwarding ports...
[default] Forwarding "ssh": 22 on adapter #1 => 2222
[default] Forwarding "http": 80 on adapter #1 => 28080
[default] Clearing previously set shared folders...
[default] Creating shared folders metadata...
[default] Booting VM...
/home/pmehta/.rvm/gems/ruby-1.9.2-p0@bushbaby3/gems/virtualbox-0.7.5/lib/virtualbox/com/implementer/ffi.rb:95:in `call_and_check': Error in API call to open_remote_session: 2147942487 (VirtualBox::Exceptions::FFIException)
from /home/pmehta/.rvm/gems/ruby-1.9.2-p0@bushbaby3/gems/virtualbox-0.7.5/lib/virtualbox/com/implementer/ffi.rb:69:in `call_vtbl_function'
@jasherai
jasherai / apt-cacher-ng config
Created March 14, 2011 09:32
quick script for configuring a vm with apt-cacher-ng with info for the host proxy when using virtualbox
#!/bin/sh
[ -f /etc/apt/apt.conf.d/01apt-cacher-ng-proxy ] || echo "Acquire::http { Proxy 'http://10.0.2.2:3142'; };" > /etc/apt/apt.conf.d/01apt-cacher-ng-proxy