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
#!/usr/bin/python3 | |
import csv | |
import argparse | |
import re | |
def underscore(name): | |
# Convert CamelCase to snake_case | |
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) |
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
# This initializer makes it that any OTP validation will pass when the configured value of ENV['VALID_OTP_CODE_FOR_DEV'] | |
# is entered. | |
# | |
# Intended to be useful for developers | |
# | |
# 1. Place under config/initializers | |
# 2. Add filename to ~/.gitignore | |
# 3. Add an entry like VALID_OTP_CODE_FOR_DEV=112233 to .env | |
# 4. When the app prompts for OTP, just use 112233. |