Skip to content

Instantly share code, notes, and snippets.

View Icehunter's full-sized avatar

Ryan Wilson Icehunter

View GitHub Profile
function Get-LostBlobs {
# Create the 'lost' directory if it doesn't exist
$lostDir = "lost"
if (-not (Test-Path $lostDir)) {
New-Item -ItemType Directory -Path $lostDir | Out-Null
}
# Run git fsck and filter for lost blobs
git fsck --lost-found | ForEach-Object {
$line = $_
@Icehunter
Icehunter / templates.json
Last active November 8, 2025 07:17
portainer v3 templates
{
"version": "3",
"templates": [
{
"type": 1,
"title": "Registry",
"description": "Docker image registry",
"categories": [
"Docker"
],