This file contains 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
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"> | |
<LayoutOptions StartTileGroupCellWidth="6" /> | |
<DefaultLayoutOverride> | |
<StartLayoutCollection> | |
<defaultlayout:StartLayout GroupCellWidth="6"> | |
</defaultlayout:StartLayout> | |
</StartLayoutCollection> | |
</DefaultLayoutOverride> | |
</LayoutModificationTemplate> |
This file contains 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
import math | |
import numpy | |
import sys, os | |
from lxml import etree | |
Re = 6371000 # Earth radius in meters | |
# Extract the latitute and longitude as a tuple in radians from a <trkpt> element | |
def extract(trkpt) : |
This file contains 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
//I didn't know you could do this, figured it out from the docs | |
//I had to get a specific element out of an array which was returned from a library as a single object and didn't want to cast to the specific type | |
//An example: | |
object test = new int[] { 1, 2, 3, 4, 5 }; | |
//ideally you would do this | |
object test2 = ((int[])test)[1]; //but this means you need to account for each type test can be | |
//this does not work (throws) | |
object test2 = ((object[])test)[1]; |
This file contains 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
$ReplicationData = Get-VMReplication | |
$ok = $true | |
$lastwait = $false | |
Do { | |
$ok = $true | |
Foreach ($VMReplica in $ReplicationData) { | |
If ($VMReplica.State -eq "Resynchronizing") { | |
if ($lastwait -ne $VMReplica) { |
This file contains 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 this example we want to add the physical drive 134:3 to the virtual drive 2/2 (raid 0) on the controller 0. | |
Data and raid type will be preserved. | |
storcli64.exe /c0 show | |
VD LIST : | |
======= | |
--------------------------------------------------------------- | |
DG/VD TYPE State Access Consist Cache Cac sCC Size Name |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] | |
"AutofillAddressEnabled"=dword:00000000 | |
"BrowserSignin"=dword:00000000 | |
"SyncDisabled"=dword:00000001 | |
"BrowserAddProfileEnabled"=dword:00000000 | |
"HideFirstRunExperience"=dword:00000001 | |
"EdgeShoppingAssistantEnabled"=dword:00000000 | |
"BingAdsSuppression"=dword:00000001 |