Skip to content

Instantly share code, notes, and snippets.

View DamianEdwards's full-sized avatar

Damian Edwards DamianEdwards

View GitHub Profile
@sajayantony
sajayantony / README.md
Created February 18, 2026 18:55
ACR Purge Task: Keep last N images per repository (Bicep + Bash workflow)

ACR Image Purge — Keep Last N Images

Automated cleanup for Azure Container Registry repositories. Deploys a scheduled ACR task that retains only the last N images per repository and deletes the rest.

How It Works

The ACR task uses the built-in acr purge command with:

Flag Value Purpose
@DamianEdwards
DamianEdwards / Microsoft.PowerShell_profile.ps1
Last active September 24, 2026 20:17
PowerShell Profile & oh-my-posh theme
function Get-ProgramFiles32() {
if ($null -ne ${env:ProgramFiles(x86)}) {
return ${env:ProgramFiles(x86)}
}
return $env:ProgramFiles
}
function Get-VsInstallLocation() {
$programFiles = Get-ProgramFiles32
$vswhere = "$programFiles\Microsoft Visual Studio\Installer\vswhere.exe"
@fryfrog
fryfrog / Android-SHIELD Android TV.xml
Last active May 2, 2025 15:54
A customized Plex profile for the Nvidia Shield, which goes in ./Library/Application Support/Plex Media Server/Profiles/
<!-- Put in ./Library/Application Support/Plex Media Server/Profiles/Android-SHIELD Android TV.xml -->
<!-- Author: Donald Webster fryfrog@gmail.com -->
<?xml version="1.0" encoding="utf-8"?>
<Client name="SHIELD Android TV">
<Identification>
<Header name="User-Agent" substring="SHIELD Android TV" />
</Identification>
<TranscodeTargets>
<VideoProfile container="mkv" codec="h264" audioCodec="aac" context="streaming" />
<MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" />