My Recent Pastes (467 and counting)

Recent Pasties by ezmobius (467 and counting)

Pages: 1 3 4 5 32

Below are summaries of the 15 most recent pasties by ezmobius.

December 21, 2008
6:07PM EDT
by ezmobius

1
2
3
4
5
# run this with :
#  rackup hello.ru

app1 = Proc.new {|env|
  [200, {'Content-Type'=>'text/html', 'hello world!']

December 21, 2008
2:59AM EDT
by ezmobius

1
2
3
4
5
$depth = 0

def outer name
  if ($depth+=1) < 2000
    outer name

December 19, 2008
6:38PM EDT
by ezmobius

1
2
3
4
5
# app.ru
app = lambda {|env|
  request = Rack::Request.new(env)
  p request.params

December 19, 2008
2:58PM EDT
by ezmobius

1
2
3
4
5
class ::Gem::Specification
  def recursive_dependencies(from, index = Gem.source_index)
    specs = self.runtime_dependencies.map do |dep|
      spec = index.search(dep).last
      unless spec

December 18, 2008
2:55PM EDT
by ezmobius

1
2
3
4
5
require 'open-uri'
cookbook_path     "/etc/chef/recipes/cookbooks"
log_level         :info
file_store_path  "/etc/chef/recipes/"
file_cache_path  "/etc/chef/recipes/"

December 17, 2008
7:38PM EDT
by ezmobius

1
2
3
4
5
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../lib/nanite'
require File.dirname(__FILE__) + '/../lib/nanite/mapper'
require 'yaml'

December 17, 2008
7:21PM EDT
by ezmobius

1
2
3
4
5
['item1', 'item2', 'item2'].each do |work|
  Nanite.request(/email/process, work, :selector => :rr) do |res|
    # check res here and update your db thast the job passed/failed
  end
end

December 11, 2008
7:41PM EDT
by ezmobius

1
2
3
4
5
broken new AMI:


domU-12-31-38-00-C5-74 ~ # emerge --color n --nospinner  --search nginx
Searching...    

December 11, 2008
7:40PM EDT
by ezmobius

1
2
3
      echo 'www-servers/apache -threads' >> /etc/portage/package.use/local
  
      echo 'APACHE2_MPMS="prefork"' >> /etc/make.conf

December 10, 2008
5:57PM EDT
by ezmobius

1
2
3
4
5
  execute "install-jruby" do
    command %Q{
      curl http://dist.codehaus.org/jruby/jruby-src-1.1.6RC1.tar.gz -O &&
      tar xvzf jruby-src-1.1.6RC1.tar.gz &&
      pushd jruby-1.1.6RC1 &&

December 10, 2008
2:49PM EDT
by ezmobius

1
2
3
4
5
abstract (1.0.0)
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)

December 10, 2008
12:17PM EDT
by ezmobius

1
2
3
4
5
in env.rb

Thread.new {
  until EM.reactor_running?
    sleep 1

December 07, 2008
3:11PM EDT
by ezmobius

1
2
3
4
5
#!/bin/bash
#================================================================================
# /engineyard/bin/monit_merb_mpc
#================================================================================
# This script controls the multi-process Merb 1.0 service

November 04, 2008
1:37PM EDT
by ezmobius

1
2
3
4
5
module Awsm
  class ExampleGroup < Merb::Test::ExampleGroup
    before(:each) do
      @transaction = DataMapper::Transaction.new(repository(:default))
      @transaction.begin

October 31, 2008
4:35PM EDT
by ezmobius

1
2
3
scope.resources :foos do
  scope.resources :bars
end

Next page