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
| #!/usr/bin/env python3 | |
| import ipaddress | |
| import csv | |
| from termcolor import cprint | |
| # fields: ['Direction', 'Subscription', 'Vnet', 'Subnet', 'Resource Group', 'NSG Name', 'Priority', 'Action', 'Rule Name', 'Source', 'Source Location', 'Target', 'Target Location', 'Protocol', 'Ports'] | |
| fields = [] | |
| allowed_locations = [ | |
| "South Central US", | |
| "East US", |
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
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |