Skip to content

Instantly share code, notes, and snippets.

@kangchihlun
kangchihlun / 101Alpha_code_1.py
Last active October 22, 2025 02:44
101Alpha_code_1.py
import numpy as np
import pandas as pd
from numpy import abs
from numpy import log
from numpy import sign
from scipy.stats import rankdata
# region Auxiliary functions
def ts_sum(df, window=10):
"""
@PeterWTipple
PeterWTipple / 00. Use Roles To Access AWS.md
Last active November 7, 2023 00:59
AWS Multi Account IAM Configuration

Why use roles?

Best practise for AWS is to ensure your team are not logging into accounts with username and password that they have any access to resources on. This means losing a password is not the end of the world, and it is easy to add and remove access to AWS.

To manage user security you need a single point to control:

  • User accounts
  • User access level
  • Password resets and age
  • MFA

By using roles to access accounts that have resources, you can make sure every single login has MFA, and you only have one place to audit and manage users.