Skip to content

Instantly share code, notes, and snippets.

View michaelbertoni's full-sized avatar

MiKarapace - Michaël Bertoni michaelbertoni

View GitHub Profile
@michaelbertoni
michaelbertoni / tf-debug.log
Created November 9, 2021 15:53
azurerm_windows_virtual_machine_scale_set creates inconsistent final plan while using both automatic_instance_repair and inline extensions
│ Error: Provider produced inconsistent final plan
│ When expanding the plan for module.entrypoint.azurerm_windows_virtual_machine_scale_set.web to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/azurerm" produced an invalid new value for .extension: planned set element
│ cty.ObjectVal(map[string]cty.Value{"auto_upgrade_minor_version":cty.True, "force_update_tag":cty.NullVal(cty.String), "name":cty.StringVal("ApplicationHealthWindows"),
│ "protected_settings":cty.NullVal(cty.String), "provision_after_extensions":cty.ListValEmpty(cty.String), "publisher":cty.StringVal("Microsoft.ManagedServices"),
│ "settings":cty.StringVal("{\"port\":\"443\",\"protocol\":\"https\",\"requestPath\":\"/periscope/\"}"), "type":cty.StringVal("ApplicationHealthWindows"),
│ "type_handler_version":cty.StringVal("1.0")}) does not correlate with any element in actual.
@michaelbertoni
michaelbertoni / keybase.md
Created January 25, 2021 23:07
keybase.md

Keybase proof

I hereby claim:

  • I am michaelbertoni on github.
  • I am michaelbertoni (https://keybase.io/michaelbertoni) on keybase.
  • I have a public key ASDUstJH4tkPpTnE3e0teblDLkFgL3_J-E8llD6xlIkKnAo

To claim this, I am signing this object:

@michaelbertoni
michaelbertoni / split-offset.py
Created May 26, 2020 17:15
Livesplit - Add an offset to all the splits game time of a run.
from datetime import datetime, timedelta
from xml.dom import minidom
file_name = "Portal 2 - first run.lss"
lss_file = minidom.parse(file_name)
game_times = lss_file.getElementsByTagName('GameTime')
for game_time in game_times:
@michaelbertoni
michaelbertoni / bluebird.config.js
Last active September 13, 2019 12:35
Learning ES8/Node.js/Bluebird and Redis
var Bluebird = require('bluebird')
Bluebird.config({
longStackTraces: true
})
module.exports = Bluebird