This file contains hidden or 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
| sudo apt-get install build-essential zlib1g-dev libncurses5-dev exuberant-ctags ncurses-term mercurial mysql-server libmysqlclient15-dev sqlite3 libsqlite3-dev libopenssl-ruby1.8 libssl-dev wget curl zsh htop tree tmux subversion bison openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake php5-mysql php5-dev php5-curl php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl git ttf-inconsolata libevent-dev libncurses5-dev libapache2-mod-php5 libpq-dev libapache2-mod-php5 php5-cli php5-common php5-cgi imagemagick libmagickwand-dev locate phpmyadmin | |
| === | |
| in .zshrc hinzufügen am Ende: | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
| === | |
| zlib: http://www.betamahster.us/blog/?p=210 | |
| wget http://www.zlib.net/zlib-1.2.7.tar.gz |
This file contains hidden or 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
| Example 5: Generating dropdownlist with option groups. | |
| from http://www.yiiframework.com/wiki/48/by-example-chtml/#hh4 | |
| If you need to generate dropdownlist using both optgroup and option tags use the following code. | |
| <div class="cars-select"> | |
| <?php echo CHtml::dropDownList('Cars', 'car_id', array( | |
| 'Mazda'=>array( | |
| 'mazda-rx7'=>'RX7', | |
| 'mazda-rx5'=>'RX5', |
This file contains hidden or 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/sh | |
| ME=your-username | |
| DIR=/Users/$ME/Sites/$1 | |
| if [ ! -d $DIR ] | |
| then | |
| sudo -u $ME mkdir $DIR | |
| sudo -u $ME touch $DIR/index.php | |
| echo "<h1>$1</h1>" >> $DIR/index.php | |
| fi |
NewerOlder