Skip to content

Instantly share code, notes, and snippets.

View shivamverma182's full-sized avatar

Shivam Verma shivamverma182

  • Thoughtworks
  • Gurugram
View GitHub Profile
#!/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",
@shivamverma182
shivamverma182 / git-branches-by-commit-date.sh
Created June 4, 2020 12:08 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# 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