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
# Apache configuration to remember (only one mongrel) | |
<VirtualHost *:80> | |
ServerName foo.com | |
DocumentRoot /home/foo/rails/public | |
# Uncomment if need pass protection | |
#<Location / > | |
#AuthType Basic | |
#AuthName "Foo Auth." | |
#AuthUserFile /etc/apache2/password_file |
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
# Apache configuration to remember | |
#NameVirtualHost *:80 # Better in apache2.conf | |
# Fix: "client denied by server configuration" | |
<Proxy *> | |
Order allow,deny | |
Allow from all | |
</Proxy> |
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
How to join/subscribe Google Groups without a Gmail ID: | |
http://groups.google.com/group/GroupName/boxsubscribe?email=myid |
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
# Used to graph results from autobench | |
# | |
# Usage: ruby autobench_grapher.rb result_from_autobench.tsv | |
# | |
# This will generate three svg & png graphs | |
require "rubygems" | |
require "scruffy" | |
require 'csv' | |
require 'yaml' |
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
# Directly copied from eycap-0.5.2 (thanks!) | |
# | |
# With these tasks you can: | |
# - dump your production database and save it in shared_path/db_backups | |
# - dump your production into your local database (clone_to_local) | |
# | |
# Tested and fixed by fjguzman | |
Capistrano::Configuration.instance(:must_exist).load do | |
namespace :db do |
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
<%# From pretty_flash by rpheath (improved by pacoguzman) %> | |
<% if flash.any? -%> | |
<script type="text/javascript"> | |
$(function() { | |
setTimeout(hideFlashes, 5000); | |
}); | |
var hideFlashes = function() { | |
$("[id^='flash_']").fadeOut(1500); |
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
/* Font face generator needed to IE family | |
* http://www.fontsquirrel.com/fontface/generator | |
*/ | |
@font-face { | |
font-family: 'Essays1743Italic'; | |
src: url('Essays1743-Italic.eot'); | |
src: local('☺'), url('Essays1743-Italic.ttf') format('truetype'); | |
} |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head><title> | |
Sistema de Información sobre calderas Eficientes | |
</title><link href="App_Themes/TemaIdae/IDAE.css" rel="stylesheet" type="text/css" /> | |
<style type="text/css"> |
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
# include at least one source and the rails gem | |
source :gemcutter | |
gem 'rails', '~> 2.3.5', :require => nil | |
gem 'sqlite3-ruby', :require => 'sqlite3' | |
# Devise 1.0.2 is not a valid gem plugin for Rails, so use git until 1.0.3 | |
# gem 'devise', :git => 'git://github.com/plataformatec/devise.git', :ref => 'v1.0' | |
group :development do | |
# bundler requires these gems in development |
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
Given /^I will confirm on next step$/ do | |
begin | |
evaluate_script("window.alert = function(msg) { return true; }") | |
evaluate_script("window.confirm = function(msg) { return true; }") | |
rescue Capybara::NotSupportedByDriverError | |
end | |
end |