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
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ | |
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript | |
echo "{"cmd": ["coffee", "-c", "$file"], "selector": "source.coffee", "path": "/usr/local/bin"}" > ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript.sublime-build |
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
(function( $ ) { | |
// Several of the methods in this plugin use code adapated from Prototype | |
// Prototype JavaScript framework, version 1.6.0.1 | |
// (c) 2005-2007 Sam Stephenson | |
var regs = { | |
undHash: /_|-/, | |
colons: /::/, | |
words: /([A-Z]+)([A-Z][a-z])/g, | |
lowUp: /([a-z\d])([A-Z])/g, | |
dash: /([a-z\d])([A-Z])/g, |
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
Help -> Install New Software -> Add -> http://github.bandlem.com/ |
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
cd /Applications/MAMP/bin/php/php5.3.6/bin | |
# upgrade pear | |
sudo ./pear upgrade pear | |
# If you get the next error, move the pear.conf file, and rerun the pear upgrade | |
# Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 | |
# ERROR: The default config file is not a valid config file or is corrupted. | |
mv /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf.old | |
sudo ./pear upgrade pear |
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
#import <Foundation/Foundation.h> | |
@interface NSObject (AMAssociatedObjects) | |
- (void)associateValue:(id)value withKey:(void *)key; // Retains value. | |
- (id)associatedValueForKey:(void *)key; | |
@end |
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
.DS_Store | |
/web/bundles/ | |
/app/bootstrap* | |
/app/cache/* | |
/app/logs/* | |
/vendor/ | |
/app/config/parameters.ini |
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
# place this code on http-vhost.conf file | |
UseCanonicalName Off | |
VirtualDocumentRoot /Users/MY_USER/Documents/%0/web | |
<Location /> | |
AllowOverride All | |
Options +FollowSymLinks | |
</Location> |
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
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
# install imagemagick | |
brew install imagemagick | |
# install imagick | |
brew install imagick | |
# if giving errors on the installation, comment the content on ~/.bash_profile or ~/.profile, open a new terminal and retry |
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
Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
1.) Open any application | |
2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
3.) Release Power button | |
4.) Press and hold Home button Lightly | |
until screen returns to icon screen |
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
cd /Applications/MAMP/bin | |
ln -s php5.3 php5 | |
php5/bin/pear channel-discover pear.phpunit.de | |
php5/bin/pear channel-discover components.ez.no | |
php5/bin/pear channel-discover pear.symfony-project.com | |
php5/bin/pear channel-update pear.php.net | |
php5/bin/pear upgrade pear | |
php5/bin/pear install phpunit/PHPUnit | |
ln -s /Applications/MAMP/bin/php5/bin/phpunit /usr/local/bin/phpunit | |
phpunit --version |