The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
$(document).bind('cbox_complete', function(){ | |
if($('#cboxTitle').height() > 20){ | |
$("#cboxTitle").hide(); | |
$("<div>"+$("#cboxTitle").html()+"</div>").css({color: $("#cboxTitle").css('color')}).insertAfter("#cboxPhoto"); | |
$.fn.colorbox.resize(); | |
} | |
}); |
$(document).bind('cbox_complete', function(){ | |
if($('#cboxTitle').height() > 20){ | |
$("#cboxTitle").hide(); | |
$("<div>"+$("#cboxTitle").html()+"</div>").css({color: $("#cboxTitle").css('color')}).insertAfter("#cboxPhoto"); | |
$.fn.colorbox.resize(); | |
} | |
}); |
NOTE: I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.
Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules