Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
sphinx: bundle exec rake thinking_sphinx:run_in_foreground RAILS_ENV=development --trace |
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 | |
# | |
# ImageMagick installer script for OSX 10.5 and 10.6 | |
# | |
# from http://github.com/maddox/magick-installer/tree/master | |
# | |
curl -O http://nongnu.askapache.com/freetype/freetype-2.3.9.tar.gz | |
tar xzvf freetype-2.3.9.tar.gz | |
cd freetype-2.3.9 |
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/bash | |
find . -type f -exec sed -i 's/text\ to\ be\ replaced/target\ text/g' {} \; |
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
make clean | |
./configure --prefix=/home/madhu/local/php --with-apxs2=/usr/bin/apxs2 --with-mysql --with-pdo-mysql --with-zlib --with-openssl --with-jpeg-dir=/usr/lib --with-gd --with-curl --with-mcrypt --enable-soap --with-pear --with-gettext --with-gdbm --with-libdir=lib64 --enable-mbstring | |
make | |
make install |
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
# /etc/apache2/sites-enabled/000-default | |
PassengerMaxPoolSize 15 | |
PassengerPoolIdleTime 0 | |
PassengerStatThrottleRate 3600 | |
PassengerMaxRequests 100 | |
<VirtualHost *:80> | |
ServerName localhost | |
ServerAlias project |
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
Interrupt on line 102 of /home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb: | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb:101:in `each' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb:101:in `replace!' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.5/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:17:in `construct_sprite' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.5/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in `each' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.5/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in `construct_sprite' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.5/lib/compass/sass_extensions/sprites/sprite_methods.rb:68:in `generate' | |
/home/madhu/.rvm/gems/ree-1.8.7- |
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
/* | |
SignalException: SIGTERM | |
Backtrace: | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb:102:in `replace!' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb:101:in `each' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/chunky_png-1.2.0/lib/chunky_png/canvas/operations.rb:101:in `replace!' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.4/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:22:in `construct_sprite' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.4/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in `each' | |
/home/madhu/.rvm/gems/ree-1.8.7-2011.02@project/gems/compass-0.11.4/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in `construct_sprite' |
- Place both the files (app.js and package.json) in the same folder and run
npm install
in your terminal. node app.js
in your terminal- Then visit http://localhost:8000/
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
var app = require('../app'); | |
console.log(); | |
app.routes.all().forEach(function(route){ | |
console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path); | |
}); | |
console.log(); | |
process.exit(); |