Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am danburke on github.
  • I am danburke (https://keybase.io/danburke) on keybase.
  • I have a public key ASC17GoBtRfdcK6J_pTouDIMdj_dXfmcF3k6VshYvaBfqwo

To claim this, I am signing this object:

input {
stdin {
type => "stdin-type"
}
}
output {
stdout {
codec => rubydebug
}
@danburke
danburke / gist:7431339
Created November 12, 2013 14:05
Parse URLs out of a .har using jq
jq -r -c '.log.entries[] | [ .request.url, .time, .response.bodySize + .response.headersSize, (.response.headers | map(select(.name=="X-Cache")) | @text) ] | @csv'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Scribblar Room</title>
<LINK href="//s3.amazonaws.com/media.muchosmedia.com/scribblar/styles/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="//s3.amazonaws.com/media.muchosmedia.com/scribblar/scripts/includes.js"></script>
=WEEKDAY($H2,2)>5