My Recent Pastes (450 and counting)

Pastes by ezmobius (450 and counting)

Pages:

Below are the 15 most recent pasties by ezmobius.

September 21, 2007
6:28PM EDT
by ezmobius

  # uncomment if you want to always redirect to www.
  server {
    listen 443;
    server_name example.com;
    # need ssl certs listed here as well

September 21, 2007
6:28PM EDT
by ezmobius

  # uncomment if you want to always redirect to www.
  server {
    listen 443;
    server_name example.com;
    rewrite ^/(.*)$ https://www.example.com/$1 permanent;

September 19, 2007
7:49PM EDT
by ezmobius

class Foo < Application
  
  def index
    @foo = "foobar"
    @baz = "foobaz"

September 19, 2007
6:41PM EDT
by ezmobius

        # Creates a new Erubis object to parse the template given in +path+.
        def new_eruby_obj(path)
          if @@erbs[path] && !cache_template?(path)
            return @@erbs[path]
          else  

September 18, 2007
4:00PM EDT
by ezmobius

// ruby.js

Object.prototype.clone = function(deepClone) {
  var result = new this.constructor()
  for (var property in this) {

September 18, 2007
3:32PM EDT
by ezmobius

namespace :rails do
  task "freeze:edge" do
    sh "svn co http://svn.devjavu.com/merb/trunk vendor/rails2.0"
  end
end

September 18, 2007
12:46AM EDT
by ezmobius

      class InternalServerError         < Merb::ControllerExceptions::ServerError; STATUS = 500
        DEFAULT_TEMPLATE = Erubis::MEruby.new(File.read(File.join(
            MERB_SKELETON_DIR, 'app/views/exceptions/internal_server_error.html.erb')))
      
        def initialize(exception = nil)

September 11, 2007
5:03PM EDT
by ezmobius

CouchObject
===========

CouchObject is a set of classes to help you talk to CouchDb (http://couchdbwiki.com/) with Ruby.

August 08, 2007
5:48PM EDT
by ezmobius

  geo $lb {
          default      0;
    10.0.0.1/32  1;   # LB IPs
    10.0.0.3/32  1;
        }

August 07, 2007
7:18PM EDT
by ezmobius

check process mongrel_oxygen_5000
  with pidfile /data/oxygen/shared/log/mongrel.5000.pid
  start program = "/usr/bin/mongrel_rails cluster::start -C /data/oxygen/current/config/mongrel_cluster.yml --clean --only 5000" as uid oxygen and gid oxygen
  stop program = "/usr/bin/mongrel_rails cluster::stop -C /data/oxygen/current/config/mongrel_cluster.yml --clean --only 5000" as uid oxygen and gid oxygen

August 04, 2007
4:53PM EDT
by ezmobius

        segments = controller_name.split('/').map{|s| s.snake_case}
        path = "#{DIST_ROOT}/app/controllers/#{controller_name}.rb"
        cnt = segments.map{|s| s.camel_case }.join('::')

August 04, 2007
1:40PM EDT
by ezmobius

# user and group to run as
user  username username;

# number of nginx workers
worker_processes  4;

August 03, 2007
7:19PM EDT
by ezmobius

puts DATA.read

__END__
not in the script

August 02, 2007
6:38PM EDT
by ezmobius

Index: lib/merb/merb_view_context.rb
===================================================================
--- lib/merb/merb_view_context.rb        (revision 371)
+++ lib/merb/merb_view_context.rb        (working copy)
@@ -6,6 +6,7 @@

July 30, 2007
5:51PM EDT
by ezmobius

#!/usr/bin/env ruby
#--
# 'gemcmd' - A non-interactive version of 'gem'.
#
# Original code

Next page

Previous page