This file contains 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
if ($wledip -eq $null){$wledip = Read-Host -Prompt "Enter IP of wled"} | |
if ($location -eq $null){$location = Read-Host -Prompt "Enter location... For example Bedroom... Input"} | |
$data = (Invoke-WebRequest http://$wledip/json).content | |
$obj = ConvertFrom-Json -InputObject $data | |
$effects = $obj.effects | |
$effects = $effects -replace '&', ' ' | |
$effects = $effects -replace '\+', ' plus' | |
$effects = $effects -replace ' ', '' |
This file contains 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
while($true){ | |
$length = get-random -Minimum 1 -Maximum 15 | |
$min = [Math]::Pow(10,$length) / 10 | |
$max = [Math]::Pow(10,$length) - 1 | |
$ran = [math]::Round((Get-Random -Minimum $min -Maximum $max)) | |
write-host $ran -NoNewline -BackgroundColor (Get-Random -Minimum 0 -Maximum 16) -ForegroundColor (Get-Random -Minimum 0 -Maximum 16) | |
} |
This file contains 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
Function CreateFiles(){ | |
Param( | |
$bytes = 10MB, | |
$count = 10000, | |
$path = "e:\files", | |
$verbosecount = 10, | |
$verbose = $true, | |
$filename = "" | |
) | |
$silent = mkdir $path -ErrorAction SilentlyContinue |
This file contains 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 -version 2 | |
<# | |
.SYNOPSIS | |
Installs latest rclone | |
.INPUTS | |
-Location to install. | |
-exeonly If you only want to deal with the exe. | |
-Temp Location to use for temp. | |
-beta To download the latest beta | |
.OUTPUTS |
This file contains 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 -version 2 | |
<# | |
.SYNOPSIS | |
Installs latest rclone beta | |
.INPUTS | |
Location to install. | |
If you only want to deal with the exe. | |
Temp location to use. |