Skip to content

Instantly share code, notes, and snippets.

View gsavastano's full-sized avatar

Giovanni Savastano gsavastano

View GitHub Profile
@gsavastano
gsavastano / pre-commit
Created December 27, 2015 12:00 — forked from saliceti/pre-commit
Git pre-commit hook to check for AWS keys
#!/usr/bin/env bash
# Install globally using https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
# The checks are simple and can give false positives. Amend the hook in the specific repository.
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object

Keybase proof

I hereby claim:

  • I am gsavastano on github.
  • I am gsavastano (https://keybase.io/gsavastano) on keybase.
  • I have a public key ASA1DIPVRaPJfjHAnoRYxjmuuztGSpgPCP_4Xc-B140YKAo

To claim this, I am signing this object: