{"action":"created","comment":{"url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/comments/33544107","id":33544107,"diff_hunk":"@@ -0,0 +1,46 @@\n+/*jslint node:true*/\n+'use strict';\n+\n+/*\n+ * write ooni header & footer.\n+ * usage: node ooni.js <date> <ooni.json.header> <ooni.json.footer>\n+ */\n+\n+var fs = require('fs');\n+var chalk = require('chalk');\n+\n+var version = JSON.parse(fs.readFileSync(__dirname + '/../package.json')).version;\n+var localip = require('../util/config').getKey('local_ip');\n+\n+var ooniHFD = fs.createWriteStream(process.argv[3]);\n+var ooniFFD = fs.createWriteStream(process.argv[4]);\n+var rid = new Date(process.argv[2]).toISOString() + \"-satellite\";\n+\n+ooniHFD.write(new Buffer(JSON.stringify({\n+  \"software_name\": \"satellite\",\n+  \"software_version\": version,\n+  \"probe_asn\": \"AS73\",\n+  \"probe_cc\": \"US\",\n+  \"probe_ip\": \"localip\",","path":"compat/ooni.js","position":24,"original_position":24,"commit_id":"b5231f8418317ac0fec5e602eb88141b2bcff59e","original_commit_id":"b5231f8418317ac0fec5e602eb88141b2bcff59e","user":{"login":"willscott","id":428199,"avatar_url":"https://avatars.githubusercontent.com/u/428199?v=3","gravatar_id":"","url":"https://api.github.com/users/willscott","html_url":"https://github.com/willscott","followers_url":"https://api.github.com/users/willscott/followers","following_url":"https://api.github.com/users/willscott/following{/other_user}","gists_url":"https://api.github.com/users/willscott/gists{/gist_id}","starred_url":"https://api.github.com/users/willscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willscott/subscriptions","organizations_url":"https://api.github.com/users/willscott/orgs","repos_url":"https://api.github.com/users/willscott/repos","events_url":"https://api.github.com/users/willscott/events{/privacy}","received_events_url":"https://api.github.com/users/willscott/received_events","type":"User","site_admin":false},"body":"nope","created_at":"2015-06-30T06:41:30Z","updated_at":"2015-06-30T06:41:30Z","html_url":"https://github.com/UWNetworksLab/satellite/pull/7#discussion_r33544107","pull_request_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/comments/33544107"},"html":{"href":"https://github.com/UWNetworksLab/satellite/pull/7#discussion_r33544107"},"pull_request":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7","id":38824820,"html_url":"https://github.com/UWNetworksLab/satellite/pull/7","diff_url":"https://github.com/UWNetworksLab/satellite/pull/7.diff","patch_url":"https://github.com/UWNetworksLab/satellite/pull/7.patch","issue_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/7","number":7,"state":"open","locked":false,"title":"Adding Oooooni support","user":{"login":"willscott","id":428199,"avatar_url":"https://avatars.githubusercontent.com/u/428199?v=3","gravatar_id":"","url":"https://api.github.com/users/willscott","html_url":"https://github.com/willscott","followers_url":"https://api.github.com/users/willscott/followers","following_url":"https://api.github.com/users/willscott/following{/other_user}","gists_url":"https://api.github.com/users/willscott/gists{/gist_id}","starred_url":"https://api.github.com/users/willscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willscott/subscriptions","organizations_url":"https://api.github.com/users/willscott/orgs","repos_url":"https://api.github.com/users/willscott/repos","events_url":"https://api.github.com/users/willscott/events{/privacy}","received_events_url":"https://api.github.com/users/willscott/received_events","type":"User","site_admin":false},"body":"This set of requests changes 2 things:\r\n1. dns aggregator runs in parallel across the files so that multiple cores can be used.\r\n2. dns aggregator can spit out ooni-compatible json of queries made.","created_at":"2015-06-29T22:28:52Z","updated_at":"2015-06-30T06:41:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd9db9ae1139735e2f8d03a75be280e785ca4686","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7/commits","review_comments_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7/comments","review_comment_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/7/comments","statuses_url":"https://api.github.com/repos/UWNetworksLab/satellite/statuses/b5231f8418317ac0fec5e602eb88141b2bcff59e","head":{"label":"UWNetworksLab:ooni","ref":"ooni","sha":"b5231f8418317ac0fec5e602eb88141b2bcff59e","user":{"login":"UWNetworksLab","id":1693920,"avatar_url":"https://avatars.githubusercontent.com/u/1693920?v=3","gravatar_id":"","url":"https://api.github.com/users/UWNetworksLab","html_url":"https://github.com/UWNetworksLab","followers_url":"https://api.github.com/users/UWNetworksLab/followers","following_url":"https://api.github.com/users/UWNetworksLab/following{/other_user}","gists_url":"https://api.github.com/users/UWNetworksLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UWNetworksLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWNetworksLab/subscriptions","organizations_url":"https://api.github.com/users/UWNetworksLab/orgs","repos_url":"https://api.github.com/users/UWNetworksLab/repos","events_url":"https://api.github.com/users/UWNetworksLab/events{/privacy}","received_events_url":"https://api.github.com/users/UWNetworksLab/received_events","type":"Organization","site_admin":false},"repo":{"id":27314211,"name":"satellite","full_name":"UWNetworksLab/satellite","owner":{"login":"UWNetworksLab","id":1693920,"avatar_url":"https://avatars.githubusercontent.com/u/1693920?v=3","gravatar_id":"","url":"https://api.github.com/users/UWNetworksLab","html_url":"https://github.com/UWNetworksLab","followers_url":"https://api.github.com/users/UWNetworksLab/followers","following_url":"https://api.github.com/users/UWNetworksLab/following{/other_user}","gists_url":"https://api.github.com/users/UWNetworksLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UWNetworksLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWNetworksLab/subscriptions","organizations_url":"https://api.github.com/users/UWNetworksLab/orgs","repos_url":"https://api.github.com/users/UWNetworksLab/repos","events_url":"https://api.github.com/users/UWNetworksLab/events{/privacy}","received_events_url":"https://api.github.com/users/UWNetworksLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UWNetworksLab/satellite","description":"Satellite: Measuring The Internet's Stars","fork":false,"url":"https://api.github.com/repos/UWNetworksLab/satellite","forks_url":"https://api.github.com/repos/UWNetworksLab/satellite/forks","keys_url":"https://api.github.com/repos/UWNetworksLab/satellite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UWNetworksLab/satellite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UWNetworksLab/satellite/teams","hooks_url":"https://api.github.com/repos/UWNetworksLab/satellite/hooks","issue_events_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/events{/number}","events_url":"https://api.github.com/repos/UWNetworksLab/satellite/events","assignees_url":"https://api.github.com/repos/UWNetworksLab/satellite/assignees{/user}","branches_url":"https://api.github.com/repos/UWNetworksLab/satellite/branches{/branch}","tags_url":"https://api.github.com/repos/UWNetworksLab/satellite/tags","blobs_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/refs{/sha}","trees_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UWNetworksLab/satellite/statuses/{sha}","languages_url":"https://api.github.com/repos/UWNetworksLab/satellite/languages","stargazers_url":"https://api.github.com/repos/UWNetworksLab/satellite/stargazers","contributors_url":"https://api.github.com/repos/UWNetworksLab/satellite/contributors","subscribers_url":"https://api.github.com/repos/UWNetworksLab/satellite/subscribers","subscription_url":"https://api.github.com/repos/UWNetworksLab/satellite/subscription","commits_url":"https://api.github.com/repos/UWNetworksLab/satellite/commits{/sha}","git_commits_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/commits{/sha}","comments_url":"https://api.github.com/repos/UWNetworksLab/satellite/comments{/number}","issue_comment_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/comments{/number}","contents_url":"https://api.github.com/repos/UWNetworksLab/satellite/contents/{+path}","compare_url":"https://api.github.com/repos/UWNetworksLab/satellite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UWNetworksLab/satellite/merges","archive_url":"https://api.github.com/repos/UWNetworksLab/satellite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UWNetworksLab/satellite/downloads","issues_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues{/number}","pulls_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls{/number}","milestones_url":"https://api.github.com/repos/UWNetworksLab/satellite/milestones{/number}","notifications_url":"https://api.github.com/repos/UWNetworksLab/satellite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UWNetworksLab/satellite/labels{/name}","releases_url":"https://api.github.com/repos/UWNetworksLab/satellite/releases{/id}","created_at":"2014-11-29T20:31:38Z","updated_at":"2015-06-19T19:18:23Z","pushed_at":"2015-06-29T22:28:52Z","git_url":"git://github.com/UWNetworksLab/satellite.git","ssh_url":"git@github.com:UWNetworksLab/satellite.git","clone_url":"https://github.com/UWNetworksLab/satellite.git","svn_url":"https://github.com/UWNetworksLab/satellite","homepage":"","size":864,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"UWNetworksLab:master","ref":"master","sha":"a8e40df529f1c59258398899bdbefb763b6b0b8a","user":{"login":"UWNetworksLab","id":1693920,"avatar_url":"https://avatars.githubusercontent.com/u/1693920?v=3","gravatar_id":"","url":"https://api.github.com/users/UWNetworksLab","html_url":"https://github.com/UWNetworksLab","followers_url":"https://api.github.com/users/UWNetworksLab/followers","following_url":"https://api.github.com/users/UWNetworksLab/following{/other_user}","gists_url":"https://api.github.com/users/UWNetworksLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UWNetworksLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWNetworksLab/subscriptions","organizations_url":"https://api.github.com/users/UWNetworksLab/orgs","repos_url":"https://api.github.com/users/UWNetworksLab/repos","events_url":"https://api.github.com/users/UWNetworksLab/events{/privacy}","received_events_url":"https://api.github.com/users/UWNetworksLab/received_events","type":"Organization","site_admin":false},"repo":{"id":27314211,"name":"satellite","full_name":"UWNetworksLab/satellite","owner":{"login":"UWNetworksLab","id":1693920,"avatar_url":"https://avatars.githubusercontent.com/u/1693920?v=3","gravatar_id":"","url":"https://api.github.com/users/UWNetworksLab","html_url":"https://github.com/UWNetworksLab","followers_url":"https://api.github.com/users/UWNetworksLab/followers","following_url":"https://api.github.com/users/UWNetworksLab/following{/other_user}","gists_url":"https://api.github.com/users/UWNetworksLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UWNetworksLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWNetworksLab/subscriptions","organizations_url":"https://api.github.com/users/UWNetworksLab/orgs","repos_url":"https://api.github.com/users/UWNetworksLab/repos","events_url":"https://api.github.com/users/UWNetworksLab/events{/privacy}","received_events_url":"https://api.github.com/users/UWNetworksLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UWNetworksLab/satellite","description":"Satellite: Measuring The Internet's Stars","fork":false,"url":"https://api.github.com/repos/UWNetworksLab/satellite","forks_url":"https://api.github.com/repos/UWNetworksLab/satellite/forks","keys_url":"https://api.github.com/repos/UWNetworksLab/satellite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UWNetworksLab/satellite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UWNetworksLab/satellite/teams","hooks_url":"https://api.github.com/repos/UWNetworksLab/satellite/hooks","issue_events_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/events{/number}","events_url":"https://api.github.com/repos/UWNetworksLab/satellite/events","assignees_url":"https://api.github.com/repos/UWNetworksLab/satellite/assignees{/user}","branches_url":"https://api.github.com/repos/UWNetworksLab/satellite/branches{/branch}","tags_url":"https://api.github.com/repos/UWNetworksLab/satellite/tags","blobs_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/refs{/sha}","trees_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UWNetworksLab/satellite/statuses/{sha}","languages_url":"https://api.github.com/repos/UWNetworksLab/satellite/languages","stargazers_url":"https://api.github.com/repos/UWNetworksLab/satellite/stargazers","contributors_url":"https://api.github.com/repos/UWNetworksLab/satellite/contributors","subscribers_url":"https://api.github.com/repos/UWNetworksLab/satellite/subscribers","subscription_url":"https://api.github.com/repos/UWNetworksLab/satellite/subscription","commits_url":"https://api.github.com/repos/UWNetworksLab/satellite/commits{/sha}","git_commits_url":"https://api.github.com/repos/UWNetworksLab/satellite/git/commits{/sha}","comments_url":"https://api.github.com/repos/UWNetworksLab/satellite/comments{/number}","issue_comment_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues/comments{/number}","contents_url":"https://api.github.com/repos/UWNetworksLab/satellite/contents/{+path}","compare_url":"https://api.github.com/repos/UWNetworksLab/satellite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UWNetworksLab/satellite/merges","archive_url":"https://api.github.com/repos/UWNetworksLab/satellite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UWNetworksLab/satellite/downloads","issues_url":"https://api.github.com/repos/UWNetworksLab/satellite/issues{/number}","pulls_url":"https://api.github.com/repos/UWNetworksLab/satellite/pulls{/number}","milestones_url":"https://api.github.com/repos/UWNetworksLab/satellite/milestones{/number}","notifications_url":"https://api.github.com/repos/UWNetworksLab/satellite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UWNetworksLab/satellite/labels{/name}","releases_url":"https://api.github.com/repos/UWNetworksLab/satellite/releases{/id}","created_at":"2014-11-29T20:31:38Z","updated_at":"2015-06-19T19:18:23Z","pushed_at":"2015-06-29T22:28:52Z","git_url":"git://github.com/UWNetworksLab/satellite.git","ssh_url":"git@github.com:UWNetworksLab/satellite.git","clone_url":"https://github.com/UWNetworksLab/satellite.git","svn_url":"https://github.com/UWNetworksLab/satellite","homepage":"","size":864,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7"},"html":{"href":"https://github.com/UWNetworksLab/satellite/pull/7"},"issue":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/issues/7"},"comments":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/UWNetworksLab/satellite/statuses/b5231f8418317ac0fec5e602eb88141b2bcff59e"}}}}