Skip to content

Instantly share code, notes, and snippets.

View skovsboll's full-sized avatar

Søren Skovsbøll skovsboll

View GitHub Profile
@skovsboll
skovsboll / gist:5de3385489ef60d3ea06ca509f1ba75e
Last active March 13, 2020 14:12
Measuring query time for the masterclass shop category product listing without price calculations
// Find category by slug
Running ToList() query on index at file:///c:/inetpub/masterclass/Website/App_Data/Ucommerce/Indexes/Category-95984832/en-US:
- Where clauses: cat => (cat.Slug == value(MyUCommerceApp.Website.Controllers.MasterClassCategoryController+<>c__DisplayClass4_0).slug)
- Native query: +Slug:sausages @0
- Native query with facets: +Slug:sausages @0
- Done searching @6
= Hits: 1 of 9 total.
= Spent 3 msecs retrieving docs
02:20:54 web.1 | D, [2017-03-28T02:20:54.376510 #4545] DEBUG -- :
02:20:54 web.1 | D, [2017-03-28T02:20:54.376686 #4545] DEBUG -- :
02:20:54 web.1 | I, [2017-03-28T02:20:54.378113 #4545] INFO -- : Started GET "/api/apps/bdead6d0-d2e7-4df1-a8c6-c286a7e5e838/test_runs?test_series=master" for 127.0.0.1 at 2017-03-28 02:20:54 -0700
02:20:54 web.1 | /opt/xamarin/test-cloud-frontend/config/routes.rb:5: warning: already initialized constant ONLY_JSON
02:20:54 web.1 | /opt/xamarin/test-cloud-frontend/config/routes.rb:5: warning: previous definition of ONLY_JSON was here
02:20:55 web.1 | I, [2017-03-28T02:20:55.679090 #4545] INFO -- : Processing by Api::TestRunsController#index as HTML
02:20:55 web.1 | I, [2017-03-28T02:20:55.679212 #4545] INFO -- : Parameters: {"test_series"=>"master", "app_id"=>"bdead6d0-d2e7-4df1-a8c6-c286a7e5e838"}
02:20:55 web.1 | D, [2017-03-28T02:20:55.776322 #4545] DEBUG -- : App Load (41.8ms
02:20:54 web.1 | D, [2017-03-28T02:20:54.376510 #4545] DEBUG -- :
02:20:54 web.1 | D, [2017-03-28T02:20:54.376686 #4545] DEBUG -- :
02:20:54 web.1 | I, [2017-03-28T02:20:54.378113 #4545] INFO -- : Started GET "/api/apps/bdead6d0-d2e7-4df1-a8c6-c286a7e5e838/test_runs?test_series=master" for 127.0.0.1 at 2017-03-28 02:20:54 -0700
02:20:54 web.1 | /opt/xamarin/test-cloud-frontend/config/routes.rb:5: warning: already initialized constant ONLY_JSON
02:20:54 web.1 | /opt/xamarin/test-cloud-frontend/config/routes.rb:5: warning: previous definition of ONLY_JSON was here
02:20:55 web.1 | I, [2017-03-28T02:20:55.679090 #4545] INFO -- : Processing by Api::TestRunsController#index as HTML
02:20:55 web.1 | I, [2017-03-28T02:20:55.679212 #4545] INFO -- : Parameters: {"test_series"=>"master", "app_id"=>"bdead6d0-d2e7-4df1-a8c6-c286a7e5e838"}
02:20:55 web.1 | D, [2017-03-28T02:20:55.776322 #4545] DEBUG -- : App Load (41.8ms
@skovsboll
skovsboll / gist:d85a5cfaf345aa1aa83a
Created January 27, 2016 09:40
Device and test logs
"logs": {
"nunitXmlZip": "https://xtc-prod-artifacts.s3-eu-west-1.amazonaws.com/5b37d48a-30bd-46a5-9568-e0dac77790eb/bd3a0515-69e9-4a34-9545-c520e2c91270?response-cache-control=max-age%3D315576000&AWSAccessKeyId=AKIAI4UZT4FCOF2OTJYQ&Signature=7fUqYFjq9i68%2BH0EXltnUpuQVRo%3D&Expires=1735689600",
"devices": [
{
"deviceConfigurationId": "apple_ipad_mini_3-9.0.2",
"deviceLog": "https://xtc-prod-artifacts.s3-eu-west-1.amazonaws.com/5b37d48a-30bd-46a5-9568-e0dac77790eb/c4edea25-8d71-48b9-a3ee-85feb19a9b9f?response-cache-control=max-age%3D315576000&AWSAccessKeyId=AKIAI4UZT4FCOF2OTJYQ&Signature=N9KZbsrynRM5diEnd88YW0VqMh4%3D&Expires=1735689600",
"testLog": "https://xtc-prod-artifacts.s3-eu-west-1.amazonaws.com/5b37d48a-30bd-46a5-9568-e0dac77790eb/9e9f7095-8568-488b-9735-fba843c0ee78?response-cache-control=max-age%3D315576000&AWSAccessKeyId=AKIAI4UZT4FCOF2OTJYQ&Signature=sV3oQDQz/UkLQLPLhJCnP7%2Br9ZE%3D&Expires=1735689600"
}
@skovsboll
skovsboll / gist:99f8b92dd276f4e57aff
Created January 27, 2015 10:25
Calabash dependencies compared
#XTC:
s.add_dependency 'bundler', '>= 1.3.0', '< 2.0'
s.add_dependency 'json' # missing version clause
s.add_dependency 'retriable', '~> 1.3.3.1'
s.add_dependency 'rubyzip', '~> 1.1'
#Calabash gem:
@skovsboll
skovsboll / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console