echo rvm ree@rails3 > .rvmrc
To apply individual files while in Rails.root:
rails application ./ -OTJs -m "<raw_path>"
| [user] | |
| name = snl | |
| email = [email protected] | |
| [alias] | |
| br = branch | |
| ci = commit | |
| st = status | |
| co = checkout | |
| pu = push origin master |
| puts Readline::HISTORY.entries.split("exit").last[0..-2].join("\n") |
| # Added following line to /etc/init.d/nginx | |
| PATH=$PATH:/usr/bin:/opt/ruby-enterprise-1.8.7-2010.01/bin | |
| # integrity conf | |
| server { | |
| listen 4444; | |
| server_name ci.papercavalier.com; | |
| root /home/deploy/integrity/public; |
| SuperUser:O2Br0ad64nd | |
| ip ifdelete intf=O2_ADSL2plus | |
| eth ifdelete intf=eth_llu | |
| eth bridge ifdetach brname=bridge intf=ethport2 | |
| eth bridge ifdelete brname=bridge intf=ethport2 | |
| eth bridge add brname=bridge2 | |
| eth bridge ifadd brname=bridge2 intf=ethport2 | |
| eth bridge ifconfig brname=bridge2 intf=ethport2 dest=ethif2 |
| attempt to set up hp psp stuff on lucid lynx | |
| installed alien | |
| alien -k hp-health-8.5.0.23-23.rhel5.x86_64.rpm | |
| # Some old shit I leave here for reference | |
| module Kosher | |
| require 'yaml' | |
| RULES = File.open(File.join(File.dirname(__FILE__), "../data/rules.yml")) {|f| YAML.load(f)} | |
| # Check if a book description is kosher. | |
| def self.description?(product_group, description, language = :en) | |
| if RULES[language].is_a?(Hash) && RULES[language][product_group].is_a?(Array) | |
| RULES[language][product_group].each do |rule| | |
| if description =~ Regexp.new(rule["bad"], true) |
| /* Check if seller is kosher */ | |
| IF (is_wl = 0 | |
| OR NEW.MaxHrs1 <=> 0) | |
| AND NEW.Cnd1 < 4 | |
| AND (total_fb <=> 0 | |
| OR ave_fb > 4.7 | |
| OR NEW.MaxHrs1 <=> 0) | |
| AND no_of_vols < 2 | |
| AND isKosher(NEW.Desc1) = 1 |
| #!/bin/bash | |
| RUBIES=$(echo `rvm list strings` | tr " " "\n") | |
| for RUBY in $RUBIES; do | |
| if [ $RUBY != "default" ]; then | |
| rvm "$RUBY@global" gem install bundler --pre | |
| fi | |
| done |
| var map = function() { | |
| emit(this.venue, {isbn: this.isbn}); | |
| }; | |
| var reduce = function(key, values) { | |
| var coll = new Array(); | |
| values.forEach(function(doc) { | |
| coll.push(doc.isbn); | |
| }); | |
| return { isbn: coll }; |