Skip to content

Instantly share code, notes, and snippets.

View mdtusz's full-sized avatar

Miklós Tusz mdtusz

View GitHub Profile
@mdtusz
mdtusz / terraform_azurerm_oauth_failure.log
Last active January 11, 2022 20:54
When trying to retrieve the access token from the microsoft graph, the provider fails with a refused connection.
2022-01-11T12:34:26.880-0800 [INFO] provider.terraform-provider-azurerm_v2.87.0_x5: Testing if Service Principal / Client Certificate is applicable for Authentication..: timestamp=2022-01-11T12:34:26.880-0800
2022-01-11T12:34:26.880-0800 [INFO] provider.terraform-provider-azurerm_v2.87.0_x5: Testing if Multi Tenant Service Principal / Client Secret is applicable for Authentication..: timestamp=2022-01-11T12:34:26.880-0800
2022-01-11T12:34:26.880-0800 [INFO] provider.terraform-provider-azurerm_v2.87.0_x5: Testing if Service Principal / Client Secret is applicable for Authentication..: timestamp=2022-01-11T12:34:26.880-0800
2022-01-11T12:34:26.880-0800 [INFO] provider.terraform-provider-azurerm_v2.87.0_x5: Using Service Principal / Client Secret for Authentication: timestamp=2022-01-11T12:34:26.880-0800
2022-01-11T12:34:26.880-0800 [INFO] provider.terraform-provider-azurerm_v2.87.0_x5: Getting OAuth config for endpoint https://login.microsoftonline.com/ with tenant ********************: timestamp=2022-01-
@mdtusz
mdtusz / bash-path-vars
Created December 12, 2018 15:55 — forked from caruccio/bash-path-vars
Path manipulation with bash vars
$ FILE=/some/path/to/file.txt
###################################
### Remove matching suffix pattern
###################################
$ echo ${FILE%.*} # remove ext
/some/path/to/file
$ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts
@mdtusz
mdtusz / bash-path-vars
Created December 12, 2018 15:55 — forked from caruccio/bash-path-vars
Path manipulation with bash vars
$ FILE=/some/path/to/file.txt
###################################
### Remove matching suffix pattern
###################################
$ echo ${FILE%.*} # remove ext
/some/path/to/file
$ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts

Keybase proof

I hereby claim:

  • I am mdtusz on github.
  • I am mdtusz (https://keybase.io/mdtusz) on keybase.
  • I have a public key ASA9y1R1VJcizwtF8wXgdCaGOQ1I7BbIMx5kPWDfmtbYMQo

To claim this, I am signing this object:

@mdtusz
mdtusz / plotcopy.py
Last active December 2, 2016 19:35
Copy cloud plots to a local streambed install.
import json
import pprint
import plotly.plotly as py
import plotly.graph_objs as go
import requests
# These will only work locally. Don't have a cow lol.
LOCAL_USERNAME = 'cats'
LOCAL_API_KEY = 'oMHrgprVMhZZLOttM0j8'