Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Last active March 24, 2020 22:55
Show Gist options
  • Save bmorelli25/3bfd7ad67a1f32ae311d037e1e542c8d to your computer and use it in GitHub Desktop.
Save bmorelli25/3bfd7ad67a1f32ae311d037e1e542c8d to your computer and use it in GitHub Desktop.
Get file name for doc build
# 1) Install: gem install digest-murmurhash
# 2) Replace contents with the content of your code block
# 3) Run: ruby get_file_name.rb
# 4) The output is the file name
require 'digest/murmurhash'
contents = %q(# With Header: "Authorization: APIKey <base64-encoded-APIKey>"
GET /)
puts Digest::MurmurHash3_x64_128.hexdigest contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment