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
#!/bin/bash | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
MFA_ARN=$(aws sts get-caller-identity --output json | jq -r '.Arn' | sed 's/user/mfa/g') | |
echo Enter your MFA code | |
read MFA_CODE |
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 numpy as np | |
import copy | |
def nan_cov(X, preserve_input=True): | |
# we need to mutate input to fill nan's with 0's | |
# if we need to use the input later, we need to use a copy now | |
if preserve_input: | |
X = copy.deepcopy(X) |