Skip to content

Instantly share code, notes, and snippets.

@simone-minto-prorob
simone-minto-prorob / python-embedded-for-Win10.md
Created May 12, 2025 19:36 — forked from jtmoon79/python-embedded-for-Win10.md
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@simone-minto-prorob
simone-minto-prorob / Clear-NuGetCache.ps1
Created May 18, 2024 20:54 — forked from thoemmi/Clear-NuGetCache.ps1
Script to delete old NuGet packages from %USERPROFILE%\.nuget\packages which haven't been accessed for 150 days
[CmdletBinding(SupportsShouldProcess=$True)]
Param(
[int]$CutoffDays = 150
)
$cutoffDate = (Get-Date).AddDays(-$CutoffDays)
# get path to cached NuGet packages ("%USERPROFILE$\.nuget\packages")
$nugetCachePath = Join-Path "$([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::UserProfile))" ".nuget\packages"