-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Here is the script: #I know this is going to look like repeat commands and such, but I like breaking things apart for organization #Set to execute all commands Set-ExecutionPolicy RemoteSigned -Scope CurrentUser #Let Admin know they need a certain version Write-Host NOTE: Powershell 7.0+ is needed to run certain modules. Checking version... -ForegroundColor Yellow workflow Verify { param($Tasks) $Tasks = @($Task1, $Task2) foreach ($item in $Tasks) { Inlinescript { #Function to check the version of PowerShell function VersionCheck{ param($Task1) if ($PSVersionTable.PSVersion.Major -lt 7) { Write-Host "Results: Version out-of-date, version 7.x will need to be installed. Please install before relaunching..." -ForegroundColor Red ; Read-Host "Press enter to be navigated to the download page..." ; Start-Process microsoft-edge:https://github.com/PowerShell/PowerShell/releases/tag/v7.1.3 continue $Task2 }
function Get-LatestPowerShell{ [CmdletBinding()] param( [Parameter( Mandatory = $false, ValueFromPipelineByPropertyName = $true, HelpMessage = "Destination Folder", Position = 0)] [string]$Folder = "$env:Temp\", [Parameter( Mandatory = $false, ValueFromPipelineByPropertyName = $true, HelpMessage = "File Type: msi or zip", Position = 1)] [ValidateSet('msi','zip')] [string]$Type = 'msi' ) $url = 'https://aka.ms/powershell-release?tag=stable' # determine if user wants msi or zip file $SearchType = '*64.msi*' if($Type -eq 'zip'){ $SearchType = '*x64.zip*' } # make sure output folder string ends in \ if( $Folder[-1] -ne '\') { $Folder = "$Folder\" } try{ # find url link to download latest install file. $r = Invoke-WebRequest -Uri $url -UseBasicParsing $link = '{0}{1}' -f 'https://github.com', ($r.Links | Where-Object { $_ -like $SearchType }).href # format output file string and download lastest install file. $OutFile = '{0}{1}' -f $Folder, $link.Split('/')[-1] Invoke-WebRequest -Uri $link -OutFile $OutFile # return downloaded file location. return $OutFile }catch{ $_.Exception.Message | Write-Warning return $null } } Clear-Host Get-LatestPowerShell