Skip to content

Instantly share code, notes, and snippets.

View soulgalore's full-sized avatar

Peter Hedenskog soulgalore

View GitHub Profile
@soulgalore
soulgalore / infinite.har
Created December 22, 2017 22:05
Infiniteloop-in-pagexray
{"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
@soulgalore
soulgalore / assa.har
Created November 9, 2017 10:11
redirect
{"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
[{
"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 ":"
#!/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
{
"log": {
"version": "1.1",
"creator": {
"name": "WebPagetest",
"version": "3.0"
},
"pages": [
{
"startedDateTime": "2017-07-30T04:48:52.000+00:00",
@soulgalore
soulgalore / HAR-with-HTML-CSS.har
Created February 17, 2017 13:14
HAR with HTML/CSS
{"log":{"version":"1.1","creator":{"name":"Firefox","version":"51.0"},"browser":{"name":"Firefox","version":"51.0"},"pages":[{"startedDateTime":"2017-02-17T14:12:39.475+01:00","id":"page_1","title":"Sitespeed.io - Welcome to the wonderful world of Web Performance run 1","pageTimings":{"onContentLoad":475,"onLoad":1077}}],"entries":[{"pageref":"page_1","startedDateTime":"2017-02-17T14:12:39.475+01:00","time":348,"request":{"bodySize":0,"method":"GET","url":"https://www.sitespeed.io/","httpVersion":"HTTP/2.0","headers":[{"name":"Host","value":"www.sitespeed.io"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.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"}],"cookies":[],"queryString":[],"postData":{"mimeTyp
This file has been truncated, but you can view the full file.
[{"args":{"fd":5},"cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","ph":"X","pid":32552,"tdur":0,"tid":18443,"ts":2808808707,"tts":8443},{"args":{"class":55,"line":55},"cat":"ipc,toplevel","name":"ChannelMojo::OnMessageReceived","ph":"X","pid":32552,"tdur":0,"tid":18443,"ts":2808808751,"tts":8484},{"args":{"number":8},"cat":"__metadata","name":"num_cpus","ph":"M","pid":32552,"tid":0,"ts":0},{"args":{"sort_index":-1},"cat":"__metadata","name":"process_sort_index","ph":"M","pid":32552,"tid":18443,"ts":0},{"args":{"name":"GPU Process"},"cat":"__metadata","name":"process_name","ph":"M","pid":32552,"tid":18443,"ts":0},{"args":{"name":"GL_ARB_timer_query"},"cat":"__metadata","name":"thread_name","ph":"M","pid":32552,"tid":24847,"ts":0},{"args":{"name":"CrGpuMain"},"cat":"__metadata","name":"thread_name","ph":"M","pid":32552,"tid":775,"ts":0},{"args":{"name":"Chrome_ChildIOThread"},"cat":"__metadata","name":"thread_name","ph":"M","pid":32552,"tid":18443,"ts":0},{"args":{"src_file":"../../third_p
{"log":{"version":"1.2","creator":{"name":"Browsertime","version":"1.0"},"pages":[{"id":"page_1","startedDateTime":"2016-12-21T07:31:06.908Z","title":"Expressen | Senaste nytt - Nyheter Sport Nöje TV | Expressen run 1","pageTimings":{"onContentLoad":374,"onLoad":5358,"_firstPaint":582},"_frameId":"66604.1","_wallTime":1482305466.90839,"_timestamp":37849.437918}],"entries":[{"cache":{},"startedDateTime":"2016-12-21T07:31:06.908Z","_requestWillBeSentTime":37849.437918,"_wallTime":1482305466.90839,"_requestId":"66604.2","_frameId":"66604.1","pageref":"page_1","request":{"method":"GET","url":"http://www.expressen.se/","_timestamp":37849.437918,"queryString":[],"headersSize":397,"bodySize":-1,"_initialPriority":"VeryHigh","cookies":[],"headers":[{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Encoding","value":"gzip, deflate, sdch"},{"name":"Accept-Language","value":"en-GB,en-US;q=0.8,en;q=0.6"},{"name":"Connection","value":"keep-alive"},{"name
[{"method":"Page.frameStartedLoading","params":{"frameId":"218.1"}},{"method":"Network.requestWillBeSent","params":{"documentURL":"https://en.wikipedia.org/wiki/Main_Page","frameId":"218.1","initiator":{"type":"other"},"loaderId":"218.1","request":{"headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36"},"initialPriority":"VeryHigh","method":"GET","mixedContentType":"none","url":"https://en.wikipedia.org/wiki/Main_Page"},"requestId":"218.1","timestamp":454020.484676,"type":"Document","wallTime":1482244041.31668}},{"method":"Network.responseReceived","params":{"frameId":"218.1","loaderId":"218.1","requestId":"218.1","response":{"connectionId":17,"connectionReused":false,"encodedDataLength":866,"fromDiskCache":false,"fromServiceWorker":false,"headers":{"accept-ranges":"bytes","age":"1745","backend-timing":"D=64312 t=1482244771243482","cache-control":"private, s-maxage=0, max-age=0, must-revalidate","conten
[{"method":"Page.frameAttached","params":{"frameId":"79751.2","parentFrameId":"79751.1"}},{"method":"Page.frameStartedLoading","params":{"frameId":"79751.2"}},{"method":"Page.frameNavigated","params":{"frame":{"id":"79751.2","loaderId":"79751.1","mimeType":"text/html","name":"chromedriver dummy frame","parentId":"79751.1","securityOrigin":"://","url":"about:blank"}}},{"method":"Page.frameStoppedLoading","params":{"frameId":"79751.2"}},{"method":"Page.frameStartedLoading","params":{"frameId":"79751.1"}},{"method":"Network.requestWillBeSent","params":{"documentURL":"https://en.wikipedia.org/wiki/Main_Page","frameId":"79751.1","initiator":{"type":"other"},"loaderId":"79751.2","request":{"headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36"},"initialPriority":"VeryHigh","method":"GET","mixedContentType":"none","url":"https://en.wikipedia.org/wiki/Main_Page"},"requestId":"79751.2","timestamp