This file contains 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 | |
services=() | |
for role in $(aws iam list-roles | jq '.Roles[].RoleName' -r); | |
do | |
echo 'role is '$role | |
for policy_arn in $(aws iam list-attached-role-policies --role-name $role | jq '.AttachedPolicies[].PolicyArn' -r); | |
do | |
if [[ ! -z $policy_arn ]]; | |
then |
This file contains 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/python3 | |
from difflib import SequenceMatcher | |
import sys | |
def similar(a, b): | |
return SequenceMatcher(None, a, b).ratio() | |
def main(): | |
uniqueUrls = [] | |
for line in sys.stdin: |