Skip to content

Instantly share code, notes, and snippets.

@vlpeng
vlpeng / ovirt-gluster.conf
Created September 23, 2016 16:43
ovirt-gluster.conf
# A sample configuration file to setup a converged ovirt/gluster install
# using gdeploy: https://github.com/gluster/gdeploy
# edit hosts to match your environment
[hosts]
host1
host2
host3
@vlpeng
vlpeng / gist:3091576
Created July 11, 2012 16:32
Xen @ CentOS
http://wiki.xen.org/wiki/Compiling_Xen_From_Source
http://wiki.xen.org/wiki/RHEL6_Xen4_Tutorial
hg clone -r 25364 http://xenbits.xen.org/hg/xen-unstable.hg
vi /etc/sysconfig/selinux
SELINUX=disabled
yum clean all
yum update -y
eboot
@vlpeng
vlpeng / gist:1703768
Created January 30, 2012 10:31
Ubuntu: Lucid Gave up waiting for root device (mptsas) resolved by rootdelay
http://blog.chinaunix.net/space.php?uid=171341&do=blog&id=2881099
问题解决:
1.在(initramfs) 下 输入 exit 后回车,操作系统开始引导.
2.进入系统后,编辑/etc/default/grub 文件,寻找到GRUB_CMDLINE_
LINUX_DEFAULT=”quite” 修改为 GRUB_CMDLINE_
@vlpeng
vlpeng / gist:1662322
Created January 23, 2012 10:14
iPod: iPod JB
1. Prepare http://thefirmwareumbrella.blogspot.com/
2. Save your shsh previous records
3. ensure shsh are in your ~/.ssh
4. go http://www.52cydia.com/ios and download your shsh firmware
5. in Windows -> http://ih8sn0w.com/ ; download iREB
6. use iREB go to DFU mode
7. ensure in DFU and launch iTune
8. Shift/Option -> click your firmware and upgrade your iPod
9. Done
@vlpeng
vlpeng / gist:1631388
Created January 18, 2012 06:08
DRAC: A DRAC 5 error has occurred - can't install the plug-in
Issue resolved.
Using: IE7
Tools --> Internet Options --> Security Tab --> select 'Interent' (Zone) --> Custom Level... (Button) --> Active control and plug-ins --> Automatic prompting for ActiveX Control --> set to Enable.
octopress admin$ rake generate
## Generating Site with Jekyll
WARNING: The linear-gradient mixin is deprecated. Instead use: @include background-image(linear-gradient(#4088d5,#2460a0))
on line 49 of /Users/admin/.rvm/gems/ruby-1.9.2-p290@rails311/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/css3/_gradient.scss, in `linear-gradient'
from line 9 of /Users/admin/app/octopress/sass/custom/_extensions.sass, in `gradient-bg'
from line 29 of /Users/admin/app/octopress/sass/custom/_ribbon.sass
from line 13 of /Users/admin/app/octopress/sass/screen.scss
WARNING: Passing separate arguments for a single shadow to box-shadow is deprecated. Pass the values as a single space-separated list, or use the single-box-shadow mixin. See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.
on line 48 of /Users/admin/.rvm/gems/ruby-1.9.2-p290@rails311/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss, in `box-shadow'
@vlpeng
vlpeng / gist:1348650
Created November 8, 2011 18:32
Hubot Heroku: How to build up your gtalk hubot
wget https://github.com/downloads/github/hubot/hubot-1.1.9.tar.gz
tar zxvf hubot-*.tar.gz
cd hubot
vim Procfile
app: bin/hubot -a gtalk -n Hubot
vim bin/hubot
#npm install
#heroku logs will be more silence the error if remove the npm install from bin/hubot
git init
@vlpeng
vlpeng / gist:1345763
Created November 7, 2011 18:36
heroku run node -> failed; but local is working
Air:hubot v$ heroku ps
Process State Command
------------ ------------------ ------------------------------
app.1 up for 12m bin/hubot -a campfire -n Hubot
run.1 complete for 12m node
run.2 complete for 14s node
run.3 starting for 17s node
MacBook-Air:hubot v$ heroku run node
Running node attached to terminal... up, run.4
@vlpeng
vlpeng / gist:1345730
Created November 7, 2011 18:25
Starting process with command `bin/hubot -a campfire -n Hubot` bin/hubot: 3: npm: not found
Air:hubot v$ heroku logs
2011-11-07T18:18:40+00:00 heroku[api]: Add-on add logging:basic by @gmail.com
2011-11-07T18:18:40+00:00 heroku[api]: Release v2 created by @gmail.com
2011-11-07T18:19:04+00:00 heroku[slugc]: Slug compilation started
2011-11-07T18:19:35+00:00 heroku[api]: Config add PATH by @gmail.com
2011-11-07T18:19:35+00:00 heroku[api]: Release v3 created by @gmail.com
2011-11-07T18:19:35+00:00 heroku[api]: Deploy a8b7cc5 by @gmail.com
2011-11-07T18:19:36+00:00 heroku[web.1]: State changed from created to down
2011-11-07T18:19:37+00:00 heroku[slugc]: Slug compilation finished
2011-11-07T18:19:43+00:00 heroku[app.1]: State changed from created to starting
@vlpeng
vlpeng / gist:1319867
Created October 27, 2011 15:24
RVM Ruby: RVM on MBA and uninstall all Ruby Gems
#RVM on Macbook air:
sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
source .bash_profile
type rvm | head -1
rvm -v
rvm requirements
rvm install 1.9.2
rvm gemset create rails311
rvm gemset use rails311
gem install rails bundle rake --no-rdoc --no-ri