Skip to content

Instantly share code, notes, and snippets.

View silverl's full-sized avatar

Larry Silverman silverl

View GitHub Profile
@silverl
silverl / Remove-OldFilesRecursively.ps1
Created March 21, 2023 22:36
PowerShell Core script to remove old files recursively, and in parallel, from a local file system or remote share, like Azure Storage File Share
param (
$StartPath = "\\your_storage_account_name.file.core.windows.net\your_share_name\whatever"
)
Set-StrictMode -Version Latest
# Write a transcript to file.
$path = Get-Location
$scriptName = $MyInvocation.MyCommand.Name
$scriptLog = "$path\$scriptName.log"
@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 / 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: