Skip to content

Instantly share code, notes, and snippets.

View pekeler's full-sized avatar

Christian Pekeler pekeler

View GitHub Profile
@pekeler
pekeler / log
Created June 5, 2012 21:10
heroku log
2012-06-05T17:47:52+00:00 app[web.4]:
2012-06-05T17:47:52+00:00 app[web.4]: Started GET "/" for 68.144.60.121 at 2012-06-05 10:47:52 -0700
2012-06-05T17:47:52+00:00 app[web.4]:
2012-06-05T17:47:53+00:00 heroku[router]: GET www.dailychildcarereport.com/ dyno=web.4 queue=0 wait=0ms service=49ms status=200 bytes=3774
2012-06-05T17:47:53+00:00 heroku[nginx]: 10.117.63.233 - - [05/Jun/2012:17:47:53 +0000] "GET / HTTP/1.1" 200 1670 "https://www.dailychildcarereport.com/user/edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3" www.dailychildcarereport.com
2012-06-05T17:47:58+00:00 app[web.4]:
2012-06-05T17:47:58+00:00 app[web.4]:
2012-06-05T17:47:58+00:00 app[web.4]: Started GET "/minors" for 68.144.60.121 at 2012-06-05 10:47:58 -0700
2012-06-05T17:47:59+00:00 heroku[router]: GET www.dailychildcarereport.com/minors dyno=web.4 queue=0 wait=0ms service=2253ms status=200 bytes=4143
2012-06-05T17:47:59+00:00 heroku[nginx]: 10.117.63.233 - - [05
@pekeler
pekeler / gist:2883178
Created June 6, 2012 16:46
heroku log 2
2012-06-06T16:40:26+00:00 app[web.2]:
2012-06-06T16:40:26+00:00 app[web.2]:
2012-06-06T16:40:26+00:00 app[web.2]: Started GET "/security" for 204.93.223.151 at 2012-06-06 09:40:26 -0700
2012-06-06T16:40:26+00:00 heroku[router]: GET www.dailychildcarereport.com/security dyno=web.2 queue=0 wait=0ms service=36ms status=200 bytes=3002
2012-06-06T16:40:26+00:00 heroku[nginx]: 10.193.185.176 - - [06/Jun/2012:16:40:26 +0000] "GET /security HTTP/1.1" 200 3002 "-" "NewRelicPinger/1.0 (65376)" www.dailychildcarereport.com
2012-06-06T16:40:30+00:00 app[web.2]:
2012-06-06T16:40:30+00:00 app[web.2]:
2012-06-06T16:40:30+00:00 app[web.2]: Started GET "/videos" for 68.144.60.121 at 2012-06-06 09:40:30 -0700
2012-06-06T16:40:30+00:00 heroku[router]: GET www.dailychildcarereport.com/videos dyno=web.2 queue=0 wait=0ms service=851ms status=200 bytes=4934
2012-06-06T16:40:30+00:00 heroku[nginx]: 10.193.185.176 - - [06/Jun/2012:16:40:30 +0000] "GET /videos HTTP/1.1" 200 1854 "https://www.dailychildcarereport.com/" "Mozilla/5.0
@pekeler
pekeler / gist:2922033
Created June 13, 2012 05:25
testp debug log_level
2012-06-13T05:13:41+00:00 app[web.3]: Started GET "/testp" for 68.144.60.121 at 2012-06-12 22:13:41 -0700
2012-06-13T05:13:41+00:00 app[web.3]: Processing by HomeController#testp as HTML
2012-06-13T05:13:41+00:00 app[web.3]: (1.2ms) select random()
2012-06-13T05:13:41+00:00 app[web.3]: Rendered text template (0.0ms)
2012-06-13T05:13:41+00:00 app[web.3]: Completed 200 OK in 185ms (Views: 182.9ms | ActiveRecord: 1.2ms)
2012-06-13T05:13:41+00:00 heroku[router]: GET www.dailychildcarereport.com/testp dyno=web.3 queue=0 wait=0ms service=13718ms status=200 bytes=17
2012-06-13T05:13:41+00:00 heroku[nginx]: 10.117.63.233 - - [13/Jun/2012:05:13:41 +0000] "GET /testp HTTP/1.1" 200 17 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" www.dailychildcarereport.com
<%= javascript_include_tag "application", APP_CONFIG[:javascript_include_options] %>
<%= link_to_unless_current "do it", test_path, :data => {:disable_with => 'Please wait...'} %>
<br>
rails version: <%= Gem.loaded_specs["rails"].version %><br>
jquery-rails version: <%= Gem.loaded_specs["jquery-rails"].version %><br>
browser: <%= browser %>
gem 'rails', '3.2.12' # change version to 3.2.11 to see this working, 3.2.12 is broken
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3',
:database => ':memory:'
)
ActiveRecord::Schema.define do
create_table :users, :force => true do |t|
@pekeler
pekeler / toolbox.expose.js
Created February 16, 2013 05:46
https://github.com/jquerytools/jquerytools/blob/master/src/toolbox/toolbox.expose.js simplified (dropped IE6 support, removed callbacks), minimally tested in Safari 6.0.2, FF 18.0.2, Chrome 24.0.1312.57, IE9, IE8, IE7. Works with jQuery 1.9
(function($) {
$.tools = $.tools || {version: '2013-02-15'};
var tool = $.tools.expose = {
conf: {
maskId: 'exposeMask',
loadSpeed: 'slow',
closeSpeed: 'fast',
zIndex: 9998,
opacity: 0.8,
startOpacity: 0,
@pekeler
pekeler / uniq_through.rb
Created January 11, 2014 22:38
test case demonstrating uniq-through associations don't remove order anymore (which breaks postgresql)
# gem 'activerecord', '3.2.16' # works
gem 'activerecord', '4.0.2' # breaks
require 'active_record'
require 'minitest/autorun'
require 'logger'
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Base.logger = Logger.new(STDOUT)
@pekeler
pekeler / uniq_through_4.1.rb
Created January 15, 2014 04:39
test case showing unscope(:order) not working
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@pekeler
pekeler / error
Last active August 29, 2015 14:18
another error
/root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10/lib/sqlite3.rb:9: [BUG] rb_gc_mark(): 0xb79f0cec is T_NONE
ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux]
-- Control frame information -----------------------------------------------
c:0025 p:---- s:0084 e:000083 CFUNC :require
c:0024 p:0040 s:0080 e:000079 TOP /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10/lib/sqlite3.rb:9 [FINISH]
c:0023 p:---- s:0078 e:000077 CFUNC :require
c:0022 p:0037 s:0074 e:000073 BLOCK /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:76 [FINISH]
c:0021 p:---- s:0071 e:000070 CFUNC :each
c:0020 p:0055 s:0068 e:000067 BLOCK /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:72 [FINISH]
@pekeler
pekeler / error2
Created April 12, 2015 03:52
yet another ruby error
/root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:56: [BUG] Segmentation fault at 0x000004
ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux]
-- Control frame information -----------------------------------------------
c:0030 p:0469 s:0089 e:000087 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:56
c:0029 p:0011 s:0086 e:000085 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:4
c:0028 p:0017 s:0084 e:000083 TOP /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:3 [FINISH]
c:0027 p:0112 s:0082 e:000080 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/helper.rb:41
c:0026 p:0011 s:0079 e:000078 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/helper.rb:7
c:0025 p:0011 s:0077 e:000076 CLASS /roo