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-Module WebAdministration | |
# Please set password as an environment variable on the server | |
Set-ItemProperty IIS:\AppPools\$app -name processModel -value @{userName=$username;password=$password} |
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 logging | |
import json | |
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler | |
from time import gmtime | |
class JSONFormatter(logging.Formatter): | |
def __init__(self, fmt: dict, datefmt: str): | |
super().__init__(fmt, datefmt) | |
def format(self, record): | |
""" |
OlderNewer