Skip to content

Instantly share code, notes, and snippets.

= snippet
String random : Gist 164989
bash alias : Gist 162611
rspec model test : Gist 163176
merge git version : Gist 168847
ext croe use google cdn : Gist 171726
jquery croe use google cdn : Gist 144591
jquery window popup a iframe : Gist 290d8e313ddea49752e8
install agi-vim : Gist 173665
shell gist : Gist 173672
@jimjin
jimjin / install_ror
Created February 20, 2010 08:41 — forked from alvin2ye/install_ror
#! /bin/bash
read -p "install ruby enterprise_1.8.7 "
[ "$REPLY" == "y" ] && wget http://rubyforge.org/frs/download.php/68718/ruby-enterprise_1.8.7-2010.01_i386.deb -O /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb && sudo dpkg -i
read -p "apt-get update "
[ "$REPLY" == "y" ] && sudo apt-get update && sudo apt-get upgrade
read -p "Remove /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb (y/n)?"
[ "$REPLY" == "y" ] && rm /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb
#!/bin/bash
sudo apt-get -y install dialog
DIALOG=${DIALOG=dialog}
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15
$DIALOG --backtitle "请选择您要安装的选项" \
--title "专业系统安装" --clear \