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 pandas as pd | |
import numpy as np | |
from scipy.stats import beta, binom | |
def binomial_beta_mixture(probs: np.array, beta_0: np.array, beta_1: np.array, data: np.array): | |
''' | |
probs: | |
beta_0: shape of the first beta binomian distribution |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
version: '3' | |
services: | |
indradb: | |
build: | |
context: . | |
dockerfile: indradb.Dockerfile | |
ports: | |
- "27620:27615" # mongo db running here too | |
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 json | |
import sys | |
import requests | |
from datetime import datetime, timedelta | |
from argparse import ArgumentParser | |
DAYS = 30 | |
LAST_SEEN = (datetime.now() - timedelta(days=DAYS)).strftime("%Y-%m-%d") |
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
# requires pymssql, sqlalchemy | |
import sys | |
import argparse | |
import pymssql | |
import json | |
from datetime import datetime, timedelta | |
from sqlalchemy.engine import create_engine, URL | |
from sqlalchemy.orm import sessionmaker |
Threat modeling is systems based analysis that identifies potential security short comings. Based on these analyses, design requirements are adopted to mitigate security risks. Furthermore, during the verification stages, explicit tests can be created to focus on or around issues surfaced by the threat model.
- A product is created
- A new feature is released
- Security incident occurs
- Architectural or infrastructure changes
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 json | |
import sys | |
import os | |
import boto3 | |
import argparse | |
parser = argparse.ArgumentParser(description='Easy Fng Button for AWS Role Gneration.') | |
parser.add_argument('-aws_name', type=str, default='UNKNOWN_NAME', |
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 ldap3 | |
password = '' | |
host_ip = "" | |
user_dn = "cn=Allen,OU=abc,OU=efgh,OU=zyx,DC=fqdg,DC=internal" | |
USERNAME = 'username' | |
DISPLAY_NAME = 'displayName' | |
MANAGER = 'manager' | |
NAME = 'name' |
NewerOlder