Skip to content

Instantly share code, notes, and snippets.

View zdavatz's full-sized avatar
🎯
Focusing

Zeno R.R. Davatz zdavatz

🎯
Focusing
View GitHub Profile
@zdavatz
zdavatz / 21_mod_ruby.conf
Created January 25, 2012 08:06
/etc/apache2/modules.d/21_mod_ruby.conf from gentoo
<IfDefine RUBY>
LoadModule ruby_module modules/mod_ruby.so
# taken from the example file
# If the ruby module is installed, this will be enabled.
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
@zdavatz
zdavatz / 01_oddb_vhost.conf
Created January 25, 2012 08:05
working /etc/apache2/vhosts.d/01_oddb_vhost.conf for mod_ruby 1.3.0 (ruby 1.8)
<Directory /var/www/oddb.org/doc>
Options ExecCGI FollowSymlinks Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/oddb.org/data/css>
Order allow,deny
Allow from all
</Directory>
def tip(msg); puts; puts msg; puts "-"*100; end
#
# 30 Ruby 1.9 Tips, Tricks & Features:
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/
#
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2"
tip "Ruby 1.9 supports named captures in regular expressions!"