Skip to content

Instantly share code, notes, and snippets.

@grantbachman
Last active August 29, 2015 14:12
Show Gist options
  • Save grantbachman/a2cce2f5904d0a860658 to your computer and use it in GitHub Desktop.
Save grantbachman/a2cce2f5904d0a860658 to your computer and use it in GitHub Desktop.
// https://jordan-wright.github.io/blog/2014/12/30/why-deleting-sensitive-information-from-github-doesnt-save-you/
// Check all events
resp = $.getJSON('https://api.github.com/events')
// Parse the object and get the user/repo/sha1 of the commit
// Check a user's commit
resp2 = $.getJSON('https://api.github.com/repos/grantbachman/SpaceXNews/git/commits/f522653bdc8e6f3d82736d1fa2da193e90442675')
// get the tree
resp3 = $.getJSON('https://api.github.com/repos/grantbachman/SpaceXNews/git/trees/7351d575af883b1c0f9605b36effa3f40892899b')
resp4 = $.getJSON('https://api.github.com/repos/grantbachman/SpaceXNews/git/blobs/bb22acede28c229de888fcce3589b69e72488844')
atob(resp4.responseJSON.content) // Decodes Base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment