Last active
March 24, 2020 22:55
-
-
Save bmorelli25/3bfd7ad67a1f32ae311d037e1e542c8d to your computer and use it in GitHub Desktop.
Get file name for doc build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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