Skip to content

Instantly share code, notes, and snippets.

@k-rush
k-rush / Get-MaxStorageAccountThroughput.ps1
Last active April 23, 2021 20:51
List all storage accounts for a resource group, get the maximum ingress and egress per minute for the past 30 days
param (
[String]$SubscriptionId,
[String]$ResourceGroupName
)
$nowTimestamp = Get-Date -Format o
$30DaysAgoTimestamp = (Get-Date).AddDays(-30) | Get-Date -Format o
function Get-MaxMetric
{
@k-rush
k-rush / gist:17e8a5744da64bb5fef9
Last active December 31, 2020 08:31 — forked from rtt/gist:5a2e0cfa638c938cca59
example python tinderbot
# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep