{"action":"created","comment":{"url":"https://api.github.com/repos/wurde/script/pulls/comments/48228769","id":48228769,"diff_hunk":"@@ -0,0 +1,27 @@\n+#!/usr/bin/env ruby\n+# dpkg_md5sum.rb\n+# Author: Andy Bettisworth\n+# Created At: 2015 1222 012004\n+# Modified At: 2015 1222 012004\n+# Description: check md5sum for all debian packages\n+\n+$LOAD_PATH.push File.expand_path('../../', __FILE__)\n+\n+require 'admin/admin'\n+require 'sec/sec'\n+\n+module Security\n+  # Check all packages' md5sum\n+  class Packages\n+    def self.md5sum_check\n+      md5sums = RakeFiles[\"/var/lib/dpkg/info/*.md5sum\"]\n+      puts md5sums.count","path":"lib/script/sec/dpkg_md5sum.rb","position":18,"original_position":18,"commit_id":"ad82c5ce7256bd4bfc01ad17c5f4e2357bd1033f","original_commit_id":"ad82c5ce7256bd4bfc01ad17c5f4e2357bd1033f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not write to stdout. Use Rails' logger if you want to log.","created_at":"2015-12-22T07:48:27Z","updated_at":"2015-12-22T07:48:27Z","html_url":"https://github.com/wurde/script/pull/66#discussion_r48228769","pull_request_url":"https://api.github.com/repos/wurde/script/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/wurde/script/pulls/comments/48228769"},"html":{"href":"https://github.com/wurde/script/pull/66#discussion_r48228769"},"pull_request":{"href":"https://api.github.com/repos/wurde/script/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/wurde/script/pulls/66","id":54341846,"html_url":"https://github.com/wurde/script/pull/66","diff_url":"https://github.com/wurde/script/pull/66.diff","patch_url":"https://github.com/wurde/script/pull/66.patch","issue_url":"https://api.github.com/repos/wurde/script/issues/66","number":66,"state":"open","locked":false,"title":"Rand scripting","user":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-22T07:48:25Z","updated_at":"2015-12-22T07:48:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c48339f6a4eb3c923c40ab352f690d34b25ec9d0","assignee":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wurde/script/milestones/1","html_url":"https://github.com/wurde/script/milestones/20%20new%20scripts","labels_url":"https://api.github.com/repos/wurde/script/milestones/1/labels","id":1448927,"number":1,"title":"20 new scripts","description":"","creator":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":3,"state":"open","created_at":"2015-12-07T23:44:58Z","updated_at":"2015-12-22T07:48:25Z","due_on":"2015-12-31T06:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/wurde/script/pulls/66/commits","review_comments_url":"https://api.github.com/repos/wurde/script/pulls/66/comments","review_comment_url":"https://api.github.com/repos/wurde/script/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wurde/script/issues/66/comments","statuses_url":"https://api.github.com/repos/wurde/script/statuses/ad82c5ce7256bd4bfc01ad17c5f4e2357bd1033f","head":{"label":"wurde:rand_scripting","ref":"rand_scripting","sha":"ad82c5ce7256bd4bfc01ad17c5f4e2357bd1033f","user":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"repo":{"id":16531196,"name":"script","full_name":"wurde/script","owner":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wurde/script","description":"Collection of command-line applications.","fork":false,"url":"https://api.github.com/repos/wurde/script","forks_url":"https://api.github.com/repos/wurde/script/forks","keys_url":"https://api.github.com/repos/wurde/script/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wurde/script/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wurde/script/teams","hooks_url":"https://api.github.com/repos/wurde/script/hooks","issue_events_url":"https://api.github.com/repos/wurde/script/issues/events{/number}","events_url":"https://api.github.com/repos/wurde/script/events","assignees_url":"https://api.github.com/repos/wurde/script/assignees{/user}","branches_url":"https://api.github.com/repos/wurde/script/branches{/branch}","tags_url":"https://api.github.com/repos/wurde/script/tags","blobs_url":"https://api.github.com/repos/wurde/script/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wurde/script/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wurde/script/git/refs{/sha}","trees_url":"https://api.github.com/repos/wurde/script/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wurde/script/statuses/{sha}","languages_url":"https://api.github.com/repos/wurde/script/languages","stargazers_url":"https://api.github.com/repos/wurde/script/stargazers","contributors_url":"https://api.github.com/repos/wurde/script/contributors","subscribers_url":"https://api.github.com/repos/wurde/script/subscribers","subscription_url":"https://api.github.com/repos/wurde/script/subscription","commits_url":"https://api.github.com/repos/wurde/script/commits{/sha}","git_commits_url":"https://api.github.com/repos/wurde/script/git/commits{/sha}","comments_url":"https://api.github.com/repos/wurde/script/comments{/number}","issue_comment_url":"https://api.github.com/repos/wurde/script/issues/comments{/number}","contents_url":"https://api.github.com/repos/wurde/script/contents/{+path}","compare_url":"https://api.github.com/repos/wurde/script/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wurde/script/merges","archive_url":"https://api.github.com/repos/wurde/script/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wurde/script/downloads","issues_url":"https://api.github.com/repos/wurde/script/issues{/number}","pulls_url":"https://api.github.com/repos/wurde/script/pulls{/number}","milestones_url":"https://api.github.com/repos/wurde/script/milestones{/number}","notifications_url":"https://api.github.com/repos/wurde/script/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wurde/script/labels{/name}","releases_url":"https://api.github.com/repos/wurde/script/releases{/id}","created_at":"2014-02-05T00:57:16Z","updated_at":"2015-12-03T23:52:55Z","pushed_at":"2015-12-22T07:48:25Z","git_url":"git://github.com/wurde/script.git","ssh_url":"git@github.com:wurde/script.git","clone_url":"https://github.com/wurde/script.git","svn_url":"https://github.com/wurde/script","homepage":"","size":2300,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":2,"default_branch":"master"}},"base":{"label":"wurde:master","ref":"master","sha":"0c3e390c98890c7dcdc48c8a4a722d37d8f9d1e3","user":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"repo":{"id":16531196,"name":"script","full_name":"wurde/script","owner":{"login":"wurde","id":5455357,"avatar_url":"https://avatars.githubusercontent.com/u/5455357?v=3","gravatar_id":"","url":"https://api.github.com/users/wurde","html_url":"https://github.com/wurde","followers_url":"https://api.github.com/users/wurde/followers","following_url":"https://api.github.com/users/wurde/following{/other_user}","gists_url":"https://api.github.com/users/wurde/gists{/gist_id}","starred_url":"https://api.github.com/users/wurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurde/subscriptions","organizations_url":"https://api.github.com/users/wurde/orgs","repos_url":"https://api.github.com/users/wurde/repos","events_url":"https://api.github.com/users/wurde/events{/privacy}","received_events_url":"https://api.github.com/users/wurde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wurde/script","description":"Collection of command-line applications.","fork":false,"url":"https://api.github.com/repos/wurde/script","forks_url":"https://api.github.com/repos/wurde/script/forks","keys_url":"https://api.github.com/repos/wurde/script/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wurde/script/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wurde/script/teams","hooks_url":"https://api.github.com/repos/wurde/script/hooks","issue_events_url":"https://api.github.com/repos/wurde/script/issues/events{/number}","events_url":"https://api.github.com/repos/wurde/script/events","assignees_url":"https://api.github.com/repos/wurde/script/assignees{/user}","branches_url":"https://api.github.com/repos/wurde/script/branches{/branch}","tags_url":"https://api.github.com/repos/wurde/script/tags","blobs_url":"https://api.github.com/repos/wurde/script/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wurde/script/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wurde/script/git/refs{/sha}","trees_url":"https://api.github.com/repos/wurde/script/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wurde/script/statuses/{sha}","languages_url":"https://api.github.com/repos/wurde/script/languages","stargazers_url":"https://api.github.com/repos/wurde/script/stargazers","contributors_url":"https://api.github.com/repos/wurde/script/contributors","subscribers_url":"https://api.github.com/repos/wurde/script/subscribers","subscription_url":"https://api.github.com/repos/wurde/script/subscription","commits_url":"https://api.github.com/repos/wurde/script/commits{/sha}","git_commits_url":"https://api.github.com/repos/wurde/script/git/commits{/sha}","comments_url":"https://api.github.com/repos/wurde/script/comments{/number}","issue_comment_url":"https://api.github.com/repos/wurde/script/issues/comments{/number}","contents_url":"https://api.github.com/repos/wurde/script/contents/{+path}","compare_url":"https://api.github.com/repos/wurde/script/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wurde/script/merges","archive_url":"https://api.github.com/repos/wurde/script/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wurde/script/downloads","issues_url":"https://api.github.com/repos/wurde/script/issues{/number}","pulls_url":"https://api.github.com/repos/wurde/script/pulls{/number}","milestones_url":"https://api.github.com/repos/wurde/script/milestones{/number}","notifications_url":"https://api.github.com/repos/wurde/script/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wurde/script/labels{/name}","releases_url":"https://api.github.com/repos/wurde/script/releases{/id}","created_at":"2014-02-05T00:57:16Z","updated_at":"2015-12-03T23:52:55Z","pushed_at":"2015-12-22T07:48:25Z","git_url":"git://github.com/wurde/script.git","ssh_url":"git@github.com:wurde/script.git","clone_url":"https://github.com/wurde/script.git","svn_url":"https://github.com/wurde/script","homepage":"","size":2300,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wurde/script/pulls/66"},"html":{"href":"https://github.com/wurde/script/pull/66"},"issue":{"href":"https://api.github.com/repos/wurde/script/issues/66"},"comments":{"href":"https://api.github.com/repos/wurde/script/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/wurde/script/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/wurde/script/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wurde/script/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/wurde/script/statuses/ad82c5ce7256bd4bfc01ad17c5f4e2357bd1033f"}}}}