Skip to content

Instantly share code, notes, and snippets.

@sohooo
sohooo / vhost.sh
Created March 18, 2009 20:17 — forked from trey/vhost.sh
vhosts script
#!/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
@sohooo
sohooo / gist:79815
Created March 16, 2009 10:19
Ruby T-Shirt text
["do", "dont do"].include? "try"
#=> false