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
#!/bin/bash -e
usage() {
cat <<EOF >&2
usage:
$0 get-config resourcegroup
EOF
exit 1
diff --git a/cmd/createorupdate/createorupdate.go b/cmd/createorupdate/createorupdate.go
index 6bd9fde6..b8ad6e50 100644
--- a/cmd/createorupdate/createorupdate.go
+++ b/cmd/createorupdate/createorupdate.go
@@ -107,7 +107,7 @@ func createOrUpdate(ctx context.Context, oc *v20180930preview.OpenShiftManagedCl
}
if oldCs != nil {
- err = p.Update(ctx, cs, azuredeploy, config)
+ err = p.Update(ctx, cs, azuredeploy)
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"
package main
import (
"bytes"
"encoding/xml"
"os"
"text/template"
)
var tmpl = `
[
{
"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 (
"fmt"
"io/ioutil"
"os"
"regexp"
"strconv"
"strings"
"time"
@jim-minter
jim-minter / capture.go
Last active April 16, 2019 22:54
capture.go
package capture
import (
"bufio"
"fmt"
"io"
"os"
"syscall"
"testing"
)
$ 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

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:

@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"