This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Performance issue in Windows Sandbox when installing components and applications | |
# due to bug - https://github.com/microsoft/Windows-Sandbox/issues/68#issuecomment-2684406010 | |
# workaround: | |
# Run in admin PowerShell: | |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CI\Policy" -Name "VerifiedAndReputablePolicyState" -Value "0" | |
CiTool.exe -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In Azure Windows Server VMs you can't change time zone via system Date and Time | |
# Alternative solution using admin powershell... | |
# Get available time zones by name | |
Get-TimeZone -ListAvailable | |
# Filter on ID | |
Get-TimeZone -ListAvailable | Where-Object ({$_.ID -like "*Europe*"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple code snippet showing use of Google Service Account JSON key file within ServiceAccountCredential. | |
using System.IO; | |
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Calendar.v3; | |
using Google.Apis.Calendar.v3.Data; | |
using Google.Apis.Services; | |
using Newtonsoft.Json.Linq; | |
var serviceAccountJson = File.ReadAllText("<JSON-FILE-HERE>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* From: https://gist.github.com/TheDistantSea/8021359 | |
* | |
* Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
* | |
* This function was born in http://stackoverflow.com/a/6832721. | |
* | |
* @param {string} v1 The first version to be compared. | |
* @param {string} v2 The second version to be compared. | |
* @param {object} [options] Optional flags that affect comparison behavior: |