My Recent Pastes (169 and counting)

Pastes by court3nay (169 and counting)

Below are the 15 most recent pasties by court3nay.

July 06, 2007
6:11PM EDT
by court3nay

Processing UsersController#update (for 76.171.191.67 at 2007-07-06 22:10:53) [PUT]
  Session ID: BAh7CSIdX29wZW5pZF9jb25zdW1lcl9zZXJ2aWNlMDoMdXNlcl9pZGkHIgpm%0AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG%0AOgpAdXNlZHsAIiVfeWFkaXNfc2VydmljZXNfeG9wZW5pZF9zZXJ2aWNlczA%3D--6b2cae07401ebe368c9fb6b03d72d6d243e4717f
  Parameters: {"user"=>{"password_confirmation"=>"", "avatar_data"=>#<StringIO:0xb72dbf38>, "login"=>"", "password"=>"", "email"=>"heavysixer@gmail.com"}, "x"=>"36", "y"=>"17", "_method"=>"put", "action"=>"update", "to"=>"/browser", "controller"=>"users"}


July 06, 2007
2:44PM EDT
by court3nay

class Products < Application
protected

  def store
    #memcached stuff

June 30, 2007
2:19PM EDT
by court3nay

var Cookie = {
  get: function(name) {
   if (document.cookie.length == 0) return false;
   var _start = document.cookie.indexOf(name+"=");
   if (_start < 0) return false;

June 27, 2007
4:00PM EDT
by court3nay

module SetupApp
  def self.included(base)
    if base.class.name == 'Spec::DSL::EvalModule'
      base.before(:each) do 
        mock_store # from elsewhere

June 14, 2007
3:09PM EDT
by court3nay

  it "Should send the calls mp3 file" do
    File.should_receive(:exist?).with("#{RAILS_ROOT}/public/audio/call_#{@call.id}.mp3").and_return(true)
    controller.should_receive(:send_file).with("/foo.mp3", anything())

    get :listen, :id => "1"

June 12, 2007
5:32PM EDT
by court3nay

monday

10-11am -  1 hour

June 06, 2007
9:41PM EDT
by court3nay

Index: app/views/admin/overview/_comment_event.rhtml
===================================================================
--- app/views/admin/overview/_comment_event.rhtml       (revision 188)
+++ app/views/admin/overview/_comment_event.rhtml       (working copy)
@@ -1,5 +1,6 @@

June 05, 2007
4:17PM EDT
by court3nay

## monit.d/crm.conf

check process crm_mongrel_6 with pidfile /var/rails/crm/current/tmp/pids/mongrel.8006.pid
  start program = "/usr/bin/mongrel_rails cluster::start -C /var/rails/crm/current/config/mongrel_cluster.yml --clean --only 8006"
  stop program  = "/usr/bin/mongrel_rails cluster::stop  -C /var/rails/crm/current/config/mongrel_cluster.yml --clean --only 8006"

May 10, 2007
9:57PM EDT
by court3nay

check process beast_mongrel_0 with pidfile /var/rails/beast/shared/pids/mongrel.55203.pid
  start program = "/var/rails/start_mongrel.sh 55203 beast/current"
  stop program  = "/var/rails/stop_mongrel.sh 55203 beast/current"
  if totalmem is greater than 120.0 MB for 3 cycles then restart
  if cpu is greater than 50% for 2 cycles then alert

May 10, 2007
9:56PM EDT
by court3nay

$ cat start_mongrel.sh 
#!/bin/sh
PATH=/usr/bin:$PATH
export PATH
mongrel_rails start -d -e production -p $1 -P tmp/pids/mongrel.$1.pid -c /var/rails/$2

May 07, 2007
1:48AM EDT
by court3nay

  def billing
    if @cart.waiting_for_address_info? or @cart.active?
      redirect_to address_cart_url(@cart)
      return

May 04, 2007
5:56PM EDT
by court3nay

require 'dl/import'
module CrazyWhyStuff

        extend DL::Importable
        dlload "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/SpeechSynthesis"

May 04, 2007
5:50PM EDT
by court3nay

require 'dl/import'
module CrazyWhyStuff

        extend DL::Importable
        dlload "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/SpeechSynthesis"

May 04, 2007
5:48PM EDT
by court3nay

require 'dl/import'
module CrazyWhyStuff

        extend DL::Importable
        dlload "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/SpeechSynthesis"

May 01, 2007
9:14PM EDT
by court3nay

      def create_automatic_tumble(text, source)
        if text =~ /^http:\/\//
          url = text.split(" ")[0]
          caption = text.split(" ")[1..-1].join(" ") # HACK
    

Next page

Previous page