This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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 |