sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
brew install git
cd /usr/local
git init
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
$localServers = array('something.dev'); | |
$stagingServers = array('something_else.com', 'and_another.com'); | |
if (in_array($_SERVER['HTTP_HOST'], $localServers)) { | |
// Development settings | |
} elseif (in_array($_SERVER['HTTP_HOST'], $stagingServers)) { | |
// Staging settings | |
} else { | |
// Production settings | |
} |
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
#! /usr/bin/env ruby | |
# | |
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com | |
# | |
puts `whois #{ARGV[0]}` =~ /No match for \"#{ARGV[0]}\"/mi ? "No" : "Yes" |
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
use 'http://yqlblog.net/samples/data.html.cssselect.xml' as data.html.cssselect; select * from data.html.cssselect where url="http://whiskerino.org/2009/beards/trey/favorites/" and css="#gallerywidemouth div" |
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/sh | |
# Original script by Jason Tan: http://solutions.treypiepmeier.com/2009/03/03/virtual-hosts-on-osx-leopard/#comment-41787 | |
DIR=/Users/$SUDO_USER/Sites/$1 | |
if [[ ! -d $DIR && `id -u` -eq 0 ]]; then | |
echo "" | |
echo "Downloading site-template repository ..." | |
sudo -u $SUDO_USER git clone --quiet git://github.com/trey/site-template.git $DIR | |
cd $DIR |
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
docutils==0.6 | |
django-tagging | |
sorl-thumbnail | |
django-gravatar | |
django-debug-toolbar | |
PIL | |
-e hg+http://bitbucket.org/ubernostrum/django-registration/#egg=Registration | |
-e git://github.com/mintchaos/typogrify.git#egg=Typogrify | |
-e git://github.com/simonw/django-html.git#egg=django_html | |
-e svn+http://code.djangoproject.com/svn/django/trunk#egg=Django |
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
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' ); | |
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content'); | |
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] . ''); | |
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress'); | |
/* More info: http://solutions.treypiepmeier.com/2008/05/28/installing-wordpress-the-right-way/ */ |
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
input[type=text], | |
textarea { padding: 7px 5px 7px 8px; border: 1px solid #999; } | |
input[type=text]:focus, | |
textarea:focus { border-color: #000; border-color: #000; border-width: 1px; border-left-width: 3px; padding-left: 6px; } | |
input[type=text] { width: 300px; } | |
input.error, | |
input.error:focus, | |
textarea.error, | |
textarea.error:focus { border-color: red; } | |
label { display: block; margin: 10px 0 0; font-weight: bold; font-size: 13px;} |
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
# change directory to the base of your project | |
# Your project base is the directory that contains | |
# either _darcs or .git or .hg | |
# to use as a command add to .zshrc or .bashrc | |
# alias base='source <path/to/base.sh> | |
CUR=$(pwd); | |
while [ ! "$CUR" = "/" ] |
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
// @include rounded(25px) | |
@mixin rounded($radius) | |
-webkit-border-radius: $radius | |
-moz-border-radius: $radius | |
border-radius: $radius | |
@mixin rounded-tl($radius) | |
-moz-border-radius-topleft: $radius | |
-webkit-border-top-left-radius: $radius | |
border-top-left-radius: $radius |
OlderNewer