http://www.softwareqatest.com/qatweb1.html#LOAD
Tools:
- ab
- httperf
- tsung
- jmeter
http://www.softwareqatest.com/qatweb1.html#LOAD
Tools:
I hereby claim:
To claim this, I am signing this object:
# Usage example: | |
# | |
# class User < ActiveRecord::Base | |
# include UniqueConstraintHandler | |
# handle_unique_constraint_on :email | |
# end | |
# | |
# User.create email: 'test@example.com' | |
# user = User.create email: 'test@example.com' | |
# user.new_record? #=> true |
#!/usr/bin/env ruby | |
puts `gem list`.split("\n").map{ |gem_with_version| gem_with_version[/^.*?(?= )/] }.join("\n") |
/* Copyright (C) 2011 by Yehuda Katz | MIT */ | |
M={},V={},C={}; |
#!/usr/bin/env ruby -w | |
# | |
# Rails 3 template (Postgres, RSpec, Capybara, Guard/libnotify4Linux, Spork) | |
# This should be used in this way: | |
# | |
# rails new APP_NAME -d postgresql -T --skip-bundle -m https://raw.github.com/gist/2489048/rails_3_template.rb | |
# 1. Non-SSL source proposal (due to bundler bug) | |
if yes?("Do you want to use the non-SSL source of rubygems.org as gems source?") | |
# run %q(sed -i 's/https:\/\/rubygems.org/http:\/\/rubygems.org/' Gemfile) |
class RockPaperScissors | |
ITEMS = %W(A P B N) | |
def self.compare(item, other_item) | |
new(item).compare other_item | |
end | |
def initialize(item) |
#!/bin/bash | |
# From this stackexchange question: http://unix.stackexchange.com/questions/72746 | |
set -e | |
package=php5-fpm | |
mkdir $package | |
cd $package |
# Hack to change the Rails cookie serializer from Marshal to JSON and therefore allow the session | |
# to be shared between different languages but also avoid that someone knowing the | |
# cookie secret key could execute arbitrary code on the server by unmarshalling | |
# modified Ruby code added to the session/permanent cookie. | |
# | |
# Note that all users will beed to login again since both the remember me cookie and the session cookies | |
# won't be valid. Note also that the remember me cookie is tested multiple times per request even when it fails. | |
# for performance reasons you might want to delete it if these extra cycles are too costly for you. | |
# | |
# Rails 4 (not tested on Rails 3). |