Skip to content

Instantly share code, notes, and snippets.

View jim-minter's full-sized avatar

Jim Minter jim-minter

  • Microsoft
  • Mexico City
View GitHub Profile
package main
import (
"fmt"
"os"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/dgrijalva/jwt-go"
)
package arm
import (
"bytes"
"encoding/json"
"testing"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network"
"github.com/Azure/go-autorest/autorest/to"
)
@jim-minter
jim-minter / main.go
Created September 13, 2019 03:44
dumb iops
package main
import (
"flag"
"fmt"
"os"
"runtime"
"sync/atomic"
"syscall"
"time"

Keybase proof

I hereby claim:

  • I am jim-minter on github.
  • I am jim_minter (https://keybase.io/jim_minter) on keybase.
  • I have a public key ASATzrWJ_WekhQGJGkmknPI-RNoA4iX3iODBp3Jky9Pkngo

To claim this, I am signing this object:

$ az vm list-sizes -l eastus --query [].name -o tsv | sort
Basic_A0
Basic_A1
Basic_A2
Basic_A3
Basic_A4
Standard_A0
Standard_A1
Standard_A10
Standard_A11
@jim-minter
jim-minter / capture.go
Last active April 16, 2019 22:54
capture.go
package capture
import (
"bufio"
"fmt"
"io"
"os"
"syscall"
"testing"
)
package main
import (
"fmt"
"io/ioutil"
"os"
"regexp"
"strconv"
"strings"
"time"
[
{
"resourceAppId": "00000003-0000-0000-c000-000000000000", // microsoft graph
"resourceAccess": [
{
"id": "5b567255-7703-4780-807c-7be8301ae99b", // read all groups
"type": "Role" // application permission
},
{
"id": "37f7f235-527c-4136-accd-4a02d197296e", // sign users in
package main
import (
"bytes"
"encoding/xml"
"os"
"text/template"
)
var tmpl = `
package api
import (
"reflect"
"testing"
"github.com/Azure/go-autorest/autorest/to"
"github.com/go-test/deep"
v20180930preview "github.com/openshift/openshift-azure/pkg/api/2018-09-30-preview/api"