Skip to content

Instantly share code, notes, and snippets.

View thapakazi's full-sized avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
# Ansible EC2 external inventory script settings
#
[ec2]
# to talk to a private eucalyptus instance uncomment these lines
# and edit edit eucalyptus_host to be the host name of your cloud controller
#eucalyptus = True
#eucalyptus_host = clc.cloud.domain.org
@thapakazi
thapakazi / update-rvm.sh
Created February 13, 2014 09:19
Update ruby version using rvm
#!/bin/bash
#source::
# http://stackoverflow.com/a/4574388/2636474
#First of all, update your RVM installation by running
rvm get stable
#then to make sure you're running the new RVM version, you'll then need to run
rvm reload #(or just open a new terminal).
@thapakazi
thapakazi / gist:8974369
Created February 13, 2014 12:37
9841465367- yagya dai.
9841465367- yagya dai.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/deploy/path/.rvm/rubies/jruby-1.7.11/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS.
(root) at /deploy/path/.rvm/rubies/jruby-1.7.11/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1085
(root) at /deploy/path/.rvm/rubies/jruby-1.7.11/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
(root) at extconf.rb:1
https://www.youtube.com/watch?v=xnKOVPXhlnE
https://github.com/defunkt/gist.git
https://github.com/defunkt/gist.git
#!/bin/sh
#source: http://www.twm-kd.com/software/boot-virtualbox-machine-from-a-usb-flash-drive/
#adding virualbox modules
sudo modprobe vboxdrv
#make a vbox hdd for the usb_drive
mkdir -p /tmp/VHardDisks