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
#!/usr/bin/env python | |
# created by shuichinet https://gist.github.com/shuichinet | |
# forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015 | |
# using minor edits by fcrimins https://www.reddit.com/user/fcrimins from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh | |
# also using clever edits by Morgan Gothard https://medium.com/@mgothard | |
# updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy) | |
# compiled by John M. Kuchta https://medium.com/@sebvance | |
# thanks to shuichinet, fcrimins and Mr. Gothard for their work |
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
<!-- | |
Blogpost available at medium.com/@samcrossdigital | |
--> | |
<html> | |
<head> | |
<title>localStorage</title> | |
</head> |
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
# Find VMs which aren't backed up by Azure | |
# | |
# Sam Crossman (https://github.com/sam-cross) | |
# You'll need the Az PowerShell module for this :) | |
# Set subscription via Set-AzContext before running this script | |
$SubscriptionName = (Get-AzContext).Subscription.Name | |
# Enumerate all VMs in all backup vaults within the subscription |
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
# Azure Backup Runbook Script | |
# github.com/transiient | |
# https://gist.github.com/transiient/ea8873b63644afe91b0ea9e383d675d3 | |
# 1. Fill in the information in the block below | |
# 2. Add to Runbook (MAKE SURE the Az module and its descentants are installed in the parent Automation Account) | |
# 3. Add a Schedule and link the Runbook | |
### !!! Fill me in !!! ### |
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
$RSG_Name = Read-Host "Enter the name of the Resource Group in which the Sync Service resides:" | |
$SyncService_Name = Read-Host "Enter the name of the Sync Service:" | |
$ExportPath = Read-Host "Enter the path and filename (ending with .csv) to export to:" | |
$StorageSyncGroups = Get-AzStorageSyncGroup -ResourceGroupName $RSG_Name -StorageSyncServiceName $SyncService_Name | |
$Objects = foreach ($_SSG in $StorageSyncGroups) { | |
$_SSE = Get-AzStorageSyncServerEndpoint -ResourceGroupName $RSG_Name -StorageSyncServiceName $SyncService_Name -SyncGroupName $_SSG.SyncGroupName | |
New-Object -TypeName PSObject -Property @{ |
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
if ($false -eq [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")) { | |
Write-Output "Run this script as an administrator, otherwise OneDrive cannot be uninstalled." | |
pause | |
exit | |
} | |
# Copy installer to a location we can run it from | |
cp "\\fs-central\OneDriveSetup.exe" "C:\Program Files\OneDriveSetup.exe" | |
# Locate existing OneDrive installation and uninstall it |