Usage:
ARGOCD_APP_SOURCE_TARGET_REVISION=dev-123 ENVIRONMENT=dev kustomize build .
If this is run from an Argo CD app of apps ARGOCD_APP_SOURCE_TARGET_REVISION
should be automatically populated.
Usage:
ARGOCD_APP_SOURCE_TARGET_REVISION=dev-123 ENVIRONMENT=dev kustomize build .
If this is run from an Argo CD app of apps ARGOCD_APP_SOURCE_TARGET_REVISION
should be automatically populated.
#!/bin/bash | |
# Delete any orphaned CNS volumes found in vCenter without a corresponding Kubernetes PV. | |
# | |
# Usage: | |
# ./remove-orphaned-cns-volumes.sh | |
# KUBECONFIG=whatever.kubeconfig FORCE=true ./remove-orphaned-cns-volumes.sh | |
set -euo pipefail | |
delete_volume() { |
// Based on https://github.com/vmware/govmomi/blob/a411671fde1b6ac482ef96e0ae4f22d415cbf256/cns/client_test.go | |
// Delete all CNS volumes: | |
// go get -u github.com/vmware/govmomi | |
// go run delete-all-cns-volumes.go | |
package main | |
import ( | |
"context" | |
"log" |
This extension calculates the sizes of the InstallDirectory
of all installed games.
Emulated games may not be correctly supported. If only GameImagePath
is set and not InstallDirectory
, no size will be listed. If multiple games are in the same InstallDirectory
, the total size of the directory will be listed for both games.
This script uses some pretty simple logic for calculating file sizes (the sum of the file size of each file, recursively). The file size may not be correctly calculated for a number of reasons (weird filesystem things, junction points, NTFS compressed files, etc.) Therefore, the reported size does NOT reflect "Size on disk", it's closer to Windows's "Size" calculation.
The report is saved as a game-sizes.csv
file in your Playnite profile's ExtensionData
folder. The extension automatically launches the file (probably with Excel) after completion.
Name: regdiff | |
Author: Blake Burkhart | |
Version: 1.1 | |
Module: regdiff.ps1 | |
Type: Script | |
Functions: |
function ConvertGamesToITAD ($allGames) { | |
foreach ($group in $allGames | Group-Object -Property Name) { | |
$games = $group.Group | |
$playtime = ($games.Playtime | Sort-Object)[-1] | |
$status = ($games.CompletionStatus | Sort-Object)[-1] | |
@{ | |
title = $games[0].Name | |
status = ([string]$status).ToLower() | |
playtime = $playtime / 60 | |
copies = @(foreach ($game in $games) { |
$discordApplications = Invoke-RestMethod "https://discordapp.com/api/v6/applications" | |
function InstalledDiscordGames { | |
# Some reason GetUnistallProgramsList has duplicates, is that normal? | |
foreach ($program in [Playnite.Common.System.Programs]::GetUnistallProgramsList()) { | |
if ($program.UninstallString -match "cmd /c start discord:///library/(\d+)/uninstall") { | |
$id = $matches[1] | |
$game = [Playnite.SDK.Models.Game]::new($program.DisplayName) | |
$game.Source = "Discord" | |
$game.GameId = $id |
Replaces the cover image of the selected games with the Steam header image for the game. If the game is not a Steam game, the game's links will be parsed for a Steam store link to guess the game's AppID.
Setting game's covers to an internet URL may be slow to load, so enabling "Asynchronous image loading" in Playnite's settings is suggested.
I recommend first running "Tools" → "Download Metadata" with "Only download metadata for games missing them" unchecked and select only: