Skip to content

Instantly share code, notes, and snippets.

@samukasmk
Created June 30, 2015 20:09
Show Gist options
  • Save samukasmk/0f294f8d7fd5764dbecb to your computer and use it in GitHub Desktop.
Save samukasmk/0f294f8d7fd5764dbecb to your computer and use it in GitHub Desktop.
# Command
shasum -a 256 /path/to/file | cut -c-12
# Example:
> shasum -a 256 ~/Desktop/Python-3.4.0.tgz | cut -c-12 (master⚡)
d2c83ea02177
# learned in: https://coderwall.com/p/bbfjrw/calculate-checksum-for-chef-s-remote_file-resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment