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
# encoding: UTF-8 | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# More info at https://github.com/guard/guard#readme | |
# Style Tests | |
# =========== | |
# - Foodcritic | |
# - RuboCop |
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
# Requires Ruby >= 2 | |
require "openssl" | |
require "aead" | |
key = Digest::SHA256.digest("key") # digest_length 32 | |
algorithm = "aes-256-gcm" | |
data = "plaintext data" | |
auth_data = "authentication data" |
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
import os | |
import os.path | |
import sys | |
from carbon.hashing import ConsistentHashRing | |
from carbon.conf import settings | |
## Settings | |
# Absolute path to the Graphite Data Directory | |
DATA_DIR = '/data/graphite/whisper' |
NewerOlder