Skip to content

Instantly share code, notes, and snippets.

View jumph4x's full-sized avatar

Denis Ivanov jumph4x

  • FCP Euro
  • Oakland
View GitHub Profile
~ curl -w "@curl-format.txt" -o /dev/null -s http://xxx.fastly-plugins.com
time_namelookup: 0.001
time_connect: 0.019
time_appconnect: 0.000
time_pretransfer: 0.019
time_redirect: 0.000
time_starttransfer: 0.038
----------
time_total: 0.040
E, [2014-03-12T03:20:47.629624 #4831] ERROR -- : reaped #<Process::Status: pid 8800 SIGIOT (signal 6)> worker=1
E, [2014-03-12T03:20:48.706269 #4831] ERROR -- : reaped #<Process::Status: pid 8807 SIGIOT (signal 6)> worker=2
I, [2014-03-12T03:20:49.119220 #8923] INFO -- : worker=1 ready
I, [2014-03-12T03:20:50.187214 #8931] INFO -- : worker=2 ready
E, [2014-03-12T03:21:17.674619 #4831] ERROR -- : reaped #<Process::Status: pid 8923 SIGIOT (signal 6)> worker=1
E, [2014-03-12T03:21:18.752262 #4831] ERROR -- : reaped #<Process::Status: pid 8654 SIGIOT (signal 6)> worker=3
I, [2014-03-12T03:21:19.199141 #9058] INFO -- : worker=1 ready
I, [2014-03-12T03:21:20.562642 #9072] INFO -- : worker=3 ready
E, [2014-03-12T03:21:47.845514 #4831] ERROR -- : reaped #<Process::Status: pid 9058 SIGIOT (signal 6)> worker=1
E, [2014-03-12T03:21:48.921430 #4831] ERROR -- : reaped #<Process::Status: pid 8787 SIGIOT (signal 6)> worker=0
denis@s7-391 ~$ gem install spree
ERROR: While executing gem ... (Gem::ImpossibleDependenciesError)
rails-4.0.0 requires railties (= 4.0.0) but it conflicted:
Activated railties-4.0.0 instead of (~> 3.2.0) via:
sass-rails-3.2.6, select2-rails-3.4.9, spree_backend-2.1.2, spree-2.1.2
@jumph4x
jumph4x / ouch.css
Last active December 17, 2015 09:49
a.icon-listen-bl:hover, .event-related .box-title a:hover, .category-related .box-title a:hover, .readmore a:hover, .footer a:hover, .pagination a:hover, .news a:hover, .latest-tweet .date a:hover, .feature .box-header .title a:hover, .caption .title a:hover, .full-agenda-link a:hover, .article a:hover, .medialib-nav a:hover, .timeline-months a:hover, .Timeline .feature .box-footer a:hover, a.icon-listen-bl:active, .event-related .box-title a:active, .category-related .box-title a:active, .readmore a:active, .footer a:active, .pagination a:active, .news a:active, .latest-tweet .date a:active, .feature .box-header .title a:active, .caption .title a:active, .full-agenda-link a:active, .article a:active, .medialib-nav a:active, .timeline-months a:active, .Timeline .feature .box-footer a:active, a.icon-listen-bl:focus, .event-related .box-title a:focus, .category-related .box-title a:focus, .readmore a:focus, .footer a:focus, .pagination a:focus, .news a:focus, .latest-tweet .date a:focus, .feature .box-header .t
@jumph4x
jumph4x / -
Created May 10, 2013 08:39
After CloudFront integration
Testing http://www.fcpeuro.com/BMW-parts
At Fri May 10 01:35:52 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time 195ms 216ms 689ms 157ms
@jumph4x
jumph4x / -
Created May 9, 2013 07:39
Without Jirafe
Testing http://www.fcpeuro.com/BMW-parts
At Thu May 9 00:36:03 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time 193ms 196ms 205ms 3ms
@jumph4x
jumph4x / -
Created May 9, 2013 07:13
Without NewRelic RUM
Testing http://www.fcpeuro.com/BMW-parts
At Thu May 9 00:09:59 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time 194ms 213ms 440ms 85ms
@jumph4x
jumph4x / -
Created May 9, 2013 07:03
Loading all JS
Testing http://www.fcpeuro.com/BMW-parts
At Thu May 9 00:00:28 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time 198ms 210ms 297ms 27ms
@jumph4x
jumph4x / downcase_user_keys.rb
Created November 30, 2012 04:47
Retroactive fix for Spree #2263
class DowncaseUserKeys < ActiveRecord::Migration
def up
Spree::User.find_each do |user|
user.update_attributes :email => user.email.downcase
end
end
def down
end
end
@jumph4x
jumph4x / acts_as_solr_reloaded_ext.rb
Created August 31, 2012 20:58
Undoing hardcoded acts_as_solr_reloaded Dismax Request type
Solr::Request::Dismax.class_eval do
def to_hash
hash = super
#hash[:defType] = 'edismax' # Kill this little hardcoded gem in acts_as_solr_reloaded
hash[:tie] = @params[:tie_breaker]
hash[:mm] = @params[:minimum_match]
hash[:qf] = @params[:query_fields]
hash[:pf] = @params[:phrase_fields]
hash[:ps] = @params[:phrase_slop]