Skip to content

Instantly share code, notes, and snippets.

Denis Ivanov jumph4x

Block or report user

Report or block jumph4x

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CDN boost
~ 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
View unicorn_logs.txt
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
View gist:7090565
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
View ouch.css
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
After CloudFront integration
View -
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
Without Jirafe
View -
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
Without NewRelic RUM
View -
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
Loading all JS
View -
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 Nov 30, 2012
Retroactive fix for Spree #2263
View downcase_user_keys.rb
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 Aug 31, 2012
Undoing hardcoded acts_as_solr_reloaded Dismax Request type
View acts_as_solr_reloaded_ext.rb
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]
You can’t perform that action at this time.