This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Removes old versions of installed PowerShell modules (user-level module folders). | |
| .DESCRIPTION | |
| For each module installed in several versions, keeps the newest one and | |
| uninstalls the others with Uninstall-PSResource (PSResourceGet). Modules only | |
| known to PowerShellGet v2 are handled afterwards with Uninstall-Module. | |
| Supports -WhatIf / -Confirm. Best run from "pwsh -NoProfile" after closing | |
| VS Code / UniGetUI, so that no module DLL is locked. | |
| .PARAMETER ModulePath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Standalone easy-to-use one-file playbook | |
| # Inspired from https://coderwall.com/p/13lh6w/dump-all-variables | |
| - hosts: all | |
| gather_facts: yes | |
| become: no | |
| connection: local | |
| vars: | |
| debug_file: "debug_env_{{ inventory_hostname }}.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.AbstractList; | |
| import java.util.Iterator; | |
| import java.util.ListIterator; | |
| import java.util.NoSuchElementException; | |
| import org.hibernate.ScrollableResults; | |
| import org.hibernate.Session; | |
| /** | |
| * A List<E> partial wrapper view on an Hibernate ScrollableResults. |