Skip to content

Instantly share code, notes, and snippets.

Zeno R.R. Davatz zdavatz

Block or report user

Report or block zdavatz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zdavatz
zdavatz / 21_mod_ruby.conf
Created Jan 25, 2012
/etc/apache2/modules.d/21_mod_ruby.conf from gentoo
View 21_mod_ruby.conf
<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 Jan 25, 2012
working /etc/apache2/vhosts.d/01_oddb_vhost.conf for mod_ruby 1.3.0 (ruby 1.8)
View 01_oddb_vhost.conf
<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>
View ruby-1.9-tips.rb
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!"
You can’t perform that action at this time.