Skip to content

Instantly share code, notes, and snippets.

MLutt / Drupal
Last active September 2, 2020 23:04
Drupal multisite creator
import os
import shutil
import subprocess
import mysql.connector
import string
import random
def promptInput(text: str, default: str) -> str:
prompt = f"{text} [{default}]" if default is not None else text
prompt += ": "
MLutt /
Last active May 27, 2020 17:09
GnuPG encrypted data storage
import sys
import os
import pickle
import subprocess
if __name__ == "__main__":
def dictString(dictionary: dict, level=0, seperator=">", whiteSpaceAfterSeperator=True, globalPrefix="") -> str:
ret = ""
for v in dictionary.keys():
ret += globalPrefix + seperator * level