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
| #Requires -RunAsAdministrator | |
| # getting the Hypervisor Launch type | |
| $hypervType = $null; | |
| (bcdedit /enum '{current}' | ForEach-Object -process { | |
| $tmp = $($_.split(' ') | Sort-Object | Get-Unique); | |
| If ($tmp.Count -eq 3 -And $tmp[1] -eq 'hypervisorlaunchtype') { | |
| $hypervType = $($tmp[2]); | |
| } | |
| } |
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
| #!/bin/bash | |
| images=$(docker image ls | tail +2 | grep '<none>' | awk '{print $3}') | |
| echo -e "*** This script will remove the following <none> images: ***\n\n$images\n" | |
| read -p 'Are you sure? [y/N] ' choice | |
| if [[ $choice == "y" ]] || [[ $choice == "Y" ]]; then | |
| echo -e "\nRemoving the images" | |
| docker image rm $images |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| "flag" | |
| ) | |
| const ( |