Skip to content

Instantly share code, notes, and snippets.

View stephan-modernadvisor's full-sized avatar

stephan-modernadvisor

View GitHub Profile
#!/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 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.