Skip to content

Instantly share code, notes, and snippets.

💥
Vacation/parental leave

Peter Hedenskog soulgalore

💥
Vacation/parental leave
Block or report user

Report or block soulgalore

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
@soulgalore
soulgalore / harexport0.6.1.har
Created May 23, 2018
example HAR from HAR export 0.6.1
View harexport0.6.1.har
{"log":{"browser":{"name":"Firefox","version":"61.0"},"creator":{"name":"Firefox","version":"61.0"},"entries":[{"_securityState":"secure","cache":{},"connection":"443","pageref":"page_7","request":{"bodySize":0,"cookies":[],"headers":[{"name":"Host","value":"www.wikipedia.org"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Connection","value":"keep-alive"},{"name":"Upgrade-Insecure-Requests","value":"1"}],"headersSize":335,"httpVersion":"HTTP/2.0","method":"GET","queryString":[],"url":"https://www.wikipedia.org/"},"response":{"bodySize":19459,"content":{"mimeType":"text/html"},"cookies":[{"name":"CP","value":"H2"},{"name":"WMF-Last-Access","value":"23-May-2018"},{"name":"WMF-Last-Access-Global","value":"23-May-2018"},{"name":"GeoIP","val
View chrome66perflogg.json
[{"method":"Page.frameScheduledNavigation","params":{"delay":0,"frameId":"85974B2FA07A0E1E012FF73742DEE96C","reason":"scriptInitiated","url":"https://www.sitespeed.io/"}},{"method":"Network.requestWillBeSent","params":{"documentURL":"https://www.sitespeed.io/","frameId":"85974B2FA07A0E1E012FF73742DEE96C","initiator":{"stack":{"callFrames":[{"columnNumber":29,"functionName":"","lineNumber":376,"scriptId":"25","url":""}]},"type":"script"},"loaderId":"D06F1FB03472A8C2DF7072640204AABE","request":{"headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.33 Safari/537.36","X-DevTools-Emulate-Network-Conditions-Client-Id":"85974B2FA07A0E1E012FF73742DEE96C"},"initialPriority":"VeryHigh","method":"GET","mixedContentType":"none","referrerPolicy":"no-referrer-when-downgrade","url":"https://www.sitespeed.io/"},"requestId":"D06F1FB03472A8C2DF7072640204AABE","timestamp":82455.623592,"type":"Document","wallTime":1522176468.014116}},{"met
@soulgalore
soulgalore / breaking.har
Created Feb 13, 2018
WPT HAR that breaks compare
View breaking.har
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.1",
"creator": {
"name": "WebPagetest",
"version": "17.12"
},
"browser": {
"name": "Chrome",
View job-log.txt
02:22:01 Started by timer
02:22:01 Started by timer
02:22:01 Building remotely on webperformance (WebPerformance) in workspace /srv/jenkins/workspace/workspace/performance-webpagetest-linux-wmf
02:22:01 Using checkout strategy: Default
02:22:01 Last Built Revision: Revision 4d6fd1f90bc05c6608c3c3e376159b2703cc8109 (origin/master)
02:22:01 Wiping out workspace first.
02:22:01 Cloning the remote Git repository
02:22:01 Cloning repository https://gerrit.wikimedia.org/r/p/performance/WebPageTest.git
02:22:01 > git init /srv/jenkins/workspace/workspace/performance-webpagetest-linux-wmf # timeout=10
02:22:01 Fetching upstream changes from https://gerrit.wikimedia.org/r/p/performance/WebPageTest.git
View wikipedia-obama-trace.json
{"traceEvents":[{"pid":56557,"tid":775,"ts":0,"ph":"I","cat":"disabled-by-default-devtools.timeline","name":"TracingStartedInPage","args":{"data":{"page":"0x478be021e8"}},"s":"t"},{"args":{"number":4},"cat":"__metadata","name":"num_cpus","ph":"M","pid":56549,"tid":0,"ts":0},{"args":{"sort_index":-5},"cat":"__metadata","name":"process_sort_index","ph":"M","pid":56549,"tid":775,"ts":0},{"args":{"name":"Renderer"},"cat":"__metadata","name":"process_name","ph":"M","pid":56549,"tid":775,"ts":0},{"args":{"uptime":0},"cat":"__metadata","name":"process_uptime_seconds","ph":"M","pid":56549,"tid":775,"ts":0},{"args":{"sort_index":-1},"cat":"__metadata","name":"thread_sort_index","ph":"M","pid":56549,"tid":775,"ts":0},{"args":{"name":"CrRendererMain"},"cat":"__metadata","name":"thread_name","ph":"M","pid":56549,"tid":775,"ts":0},{"args":{"number":4},"cat":"__metadata","name":"num_cpus","ph":"M","pid":56543,"tid":0,"ts":0},{"args":{"sort_index":-6},"cat":"__metadata","name":"process_sort_index","ph":"M","pid":56543,"tid"
@soulgalore
soulgalore / wpt.har
Created Jan 17, 2018
PageXray picks up wrong http version
View wpt.har
{"log":{"version":"1.1","creator":{"name":"WebPagetest","version":"17.12"},"browser":{"name":"Chrome","version":"63.0.3239.132"},"pages":[{"startedDateTime":"2018-01-17T08:03:33.827+00:00","title":"Run 1, First View for https://en.wikipedia.org/wiki/Barack_Obama","id":"page_1_0_1","pageTimings":{"onLoad":5272,"onContentLoad":-1,"_startRender":2500},"_minify_total":-1,"_responses_200":95,"_testStartOffset":0,"_bytesOut":48608,"_gzip_savings":0,"_requestsFull":95,"_start_epoch":0,"_connections":2,"_bytesOutDoc":47484,"_result":0,"_final_base_page_request_id":"46430.3","_base_page_dns_ns":"ns1.wikimedia.org","_basePageSSLTime":54,"_docTime":5272,"_domContentLoadedEventEnd":605,"_image_savings":39380,"_requestsDoc":93,"_score_cookies":-1,"_base_page_ip_ptr":"text-lb.eqiad.wikimedia.org","_score_cdn":0,"_optimization_checked":1,"_score_minify":-1,"_gzip_total":550009,"_responses_404":0,"_loadTime":5272,"_URL":"https://en.wikipedia.org/wiki/Barack_Obama","_score_combine":-1,"_score_etags":-1,"_image_total":804962,"
@soulgalore
soulgalore / infinite.har
Created Dec 22, 2017
Infiniteloop-in-pagexray
View infinite.har
{"log":{"version":"1.2","creator":{"name":"chrome-har","version":"0.2.3","comment":"https://github.com/sitespeedio/chrome-har"},"pages":[{"id":"page_1","startedDateTime":"2017-12-22T21:58:50.257Z","title":"Registrierung | myToys.de run 1","pageTimings":{"onContentLoad":1198.23,"onLoad":2143.745,"_firstPaint":1272,"_domInteractiveTime":1661,"_domContentLoadedTime":1661},"_meta":{"connectivity":"native"},"_visualMetrics":{}}],"entries":[{"cache":{},"startedDateTime":"2017-12-22T21:58:49.425Z","_initialPriority":"VeryHigh","_priority":"VeryHigh","pageref":"page_1","request":{"method":"GET","url":"https://checkout.mytoys.de/checkout/registration","queryString":[],"headersSize":428,"bodySize":0,"cookies":[],"headers":[{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"name":"Connection","value":"keep-alive"},{"name":"Host","value":"c
View assa.har
{"log":{"version":"1.2","creator":{"name":"chrome-har","version":"0.2.3","comment":"https://github.com/sitespeedio/chrome-har"},"browser":{"name":"Chrome","version":"62.0.3202.62"},"pages":[{"id":"page_1","startedDateTime":"2017-11-09T09:52:37.507Z","title":"Lås & passersystem från ASSA höjer säkerheten - i ytterdörrar & innerdörrar run 1","pageTimings":{"onContentLoad":443.03,"onLoad":2778.852,"_firstPaint":444,"_domInteractiveTime":501,"_domContentLoadedTime":501},"_meta":{"connectivity":"native"},"_visualMetrics":{}},{"id":"page_1-1","startedDateTime":"2017-11-09T09:52:46.539Z","title":"Lås & passersystem från ASSA höjer säkerheten - i ytterdörrar & innerdörrar run 2","pageTimings":{"onContentLoad":418.62,"onLoad":1011.532,"_firstPaint":401,"_domInteractiveTime":477,"_domContentLoadedTime":477},"_meta":{"connectivity":"native"},"_visualMetrics":{}},{"id":"page_1-1-1","startedDateTime":"2017-11-09T09:52:53.734Z","title":"Lås & passersystem från ASSA höjer säkerheten - i ytterdörrar & innerdörrar run 3","pag
View broken
[{
"url": "https://s.yimg.com/rz/l/favicon.ico",
"contentSize": 5430,
"transferSize": 5731,
"lastModification": 31929.714,
"cacheTime": 0,
"page": "pages/www.yahoo.com/",
"runPage": "pages/www.yahoo.com/0"
}] yahoo.com / ","
runPage ":"
View gist:82801f7ca0f120d5cb7f226833b88ad8
#!/bin/bash
## Setup a delay
sudo dnctl -q flush
sudo dnctl -q pipe flush
sudo dnctl pipe 1 config delay 0ms noerror
sudo dnctl pipe 2 config delay 0ms noerror
sudo pfctl -f pfctl.rules
sudo dnctl pipe 1 config bw 780Kbit/s delay 100ms
sudo dnctl pipe 2 config bw 330Kbit/s delay 100ms
You can’t perform that action at this time.