Skip to content

Instantly share code, notes, and snippets.

View silverl's full-sized avatar

Larry Silverman silverl

View GitHub Profile
@silverl
silverl / Remove-AzStorageFileShareFiles.ps1
Created March 21, 2023 22:39
Recursively removes Azure Storage File Share files using the Az.Storage module
# Log in first using Connect-AzAccount
param(
[string]$DirectoryPath,
[string]$StorageAccountName,
[string]$FileShareName,
[string]$ResourceGroupName,
[int]$DaysOld
)
@silverl
silverl / download-nuget-licenses.ps1
Last active May 16, 2023 16:51 — forked from haacked/download-nuget-licenses.ps1
A PowerShell script to download your NuGet package licenses as first seen in http://haacked.com/archive/2015/03/28/download-nuget-package-licenses/
Split-Path -parent $dte.Solution.FileName | cd
New-Item -ItemType Directory -Force -Path ".\licenses"
@( Get-Project -All | ? { $_.ProjectName } | % { Get-Package -ProjectName $_.ProjectName } ) | Sort -Unique Id | % { $pkg = $_ ; Try { (New-Object System.Net.WebClient).DownloadFile($pkg.LicenseUrl, (Join-Path (pwd) 'licenses\') + $pkg.Id + ".html") } Catch [system.exception] { Write-Host "Could not download license for $($pkg.Id)" } }
@silverl
silverl / docker-compose.yml
Created January 12, 2024 15:48
Unpoller docker compose
version: '3'
services:
influxdb:
restart: always
image: influxdb:1.8
ports:
- '8086:8086'
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes: