Skip to content

Instantly share code, notes, and snippets.

View cherring's full-sized avatar
💭
Why do we even need this?

Chris Herring cherring

💭
Why do we even need this?
View GitHub Profile
Mon Dec 6 21:48:33 [conn6190] query issues_production.delayed_backend_mongoid_jobs ntoreturn:5 scanAndOrder reslen:36 nscanned:98618 { $query: { run_at: { $lte: new Date(1291672113000) }, failed_at: null, locked_by: "delayed_job host:webby4139 pid:4791" }, $orderby: { priority: 1, run_at: 1 } } nreturned:0 178ms
Mon Dec 6 21:48:36 [conn6190] query issues_production.delayed_backend_mongoid_jobs ntoreturn:5 scanAndOrder reslen:801 nscanned:98618 { $query: { run_at: { $lte: new Date(1291672113000) }, failed_at: null, $where: "this.locked_at == null || this.locked_at < new Date(1291657713266.2422)" }, $orderby: { priority: 1, run_at: 1 } } nreturned:5 3385ms
Mon Dec 6 21:48:39 [conn6190] query issues_production.delayed_backend_mongoid_jobs ntoreturn:5 scanAndOrder reslen:36 nscanned:98618 { $query: { run_at: { $lte: new Date(1291672119000) }, failed_at: null, locked_by: "delayed_job host:webby4139 pid:4791" }, $orderby: { priority: 1, run_at: 1 } } nreturned:0 181ms
Mon Dec 6 21:48:42 [conn6190] query i
Feature: Generate a new Synapse app
lorem ipsum else
Scenario: Generate a new synapse app
Given I have no synapse app "my/new/app" # Test that there are no files/dirs for the app
When I generate a synapse app "my/new/app" # Trigger the app build
Then I should have the generated files for "my/new/app" # Test that all the files are there, Use an after hook to get rid of them after
javascript_include_tag "file1", "file2", :cache => "production.js"
it "should be working with tests" do
Code.should be_tested
end
So I have domain.com, and want to be able to access account.domain.com as a way of doing Account keys. That part was easy.
But I also want to have staging.domain.com to have my staging environment and need to be able to resolve account.staging.domain.com to get accounts on my staging server, at first I screwed this up by doing an A record for staging and one for *.staging.
All I actually needed was an A record for domain.com, and one for *.domain.com and covers everything, so that's what I have now.
gem install autotest
gem install autotest/fs_event
gem install autotest/growl
gem install autotest/rails
#### ~/.autotest
require 'autotest/growl'
require 'autotest/fsevent'
grey='\e[0;90m'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$grey%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$grey%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$grey%})"
function pat_prompt {
(( spare_width = ${COLUMNS} ))
prompt=" "
2010-07-16T17:10:45+1000: *** Starting job worker delayed_job host:jfrails2 pid:9214
2010-07-16T17:12:40+1000: * [Worker(delayed_job host:jfrails2 pid:9214)] acquired lock on ScorecardJob
2010-07-16T17:12:40+1000: * [JOB] delayed_job host:jfrails2 pid:9214 failed with ActiveRecord::StatementInvalid: PGError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
: SELECT * FROM "outlets" - 0 failed attempts
2010-07-16T17:12:40+1000: * [Worker(delayed_job host:jfrails2 pid:9214)] acquired lock on ScorecardJob
2010-07-16T17:12:40+1000: * [JOB] delayed_job host:jfrails2 pid:9214 failed with ActiveRecord::StatementInvalid: PGError: no connection to the server
: SELECT * FROM "outlets" - 1 failed attempts
2010-07-16T17:12:40+1000: 2 jobs processed at 53.2326 j/s, 2 failed ...
map.resources :"foo-bar", :controller => "foo_bar", :only => [:new, :create, :index]
<VirtualHost *>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.christas\-art\.com$ [NC]
RewriteRule ^(.*)$ http://christas-art.com/$1 [R=301,L]
ServerName christas-art.com
DocumentRoot /u/apps/art_production/current/public
RailsEnv production
<Directory "/u/apps/art_production/current/public">