Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download Simulator
#requires -Module NameIt
while ($true) {
$limit = Get-Random -Minimum 500 -Maximum 4000
$t = 0
$p = 0
$r=ig "[adjective]-[noun]_v#.#.##."
$r += @('zip', 'exe', '7zip') | Get-Random
while($p -lt 100) {
$sleep = Get-Random -Minimum 25 -Maximum 800
Write-Progress -Activity "Downloading" -PercentComplete $p -Status "$r"
Start-Sleep -Milliseconds $sleep
$t += $sleep
$p = ($t/$limit)*100
}
Write-Progress -Activity "Downloading" -Completed
Start-Sleep -Milliseconds 150
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.