I hereby claim:
- I am aytch on github.
- I am aytch (https://keybase.io/aytch) on keybase.
- I have a public key ASB8aYbAlzFPBykM_tac_Lp03pZE_ewUHqv6-ypzCIttmwo
To claim this, I am signing this object:
| function Set-ElevatedStatus { | |
| $WindowsPrincipal = new-object System.Security.Principal.WindowsPrincipal(` | |
| [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
| ) | |
| $IsAdmin = $WindowsPrincipal.IsInRole(` | |
| [System.Security.Principal.WindowsBuiltInRole]::Administrator) | |
| if ($IsAdmin -eq $True) { | |
| # No action required | |
| } | |
| else { |
I hereby claim:
To claim this, I am signing this object:
If you're getting errors like:
+---------------------------------------------+
Chef License Acceptance
Before you can continue, 2 product licenses
must be accepted. View the license at
https://www.chef.io/end-user-license-agreement/
| $serverlist = "server1","server2" | |
| # `%{}` is shorthand for ForEach-Object. | |
| # `$_` is a special variable that refers to "this" item in the array. | |
| $serverlist | %{ Invoke-Command -ComputerName $_ -AsJob -ScriptBlock { <some commands> } } | |
| # To view results of jobs | |
| Get-Job | Receive-Job |
| function Start-Noita { | |
| <# | |
| .SYNOPSIS | |
| Starts Noita from a PowerShell prompt, optionally with a specific set seed for a new game. | |
| .DESCRIPTION | |
| To use this function, copy and paste the complete function definition into a PowerShell | |
| session, and then invoke it with `Start-Noita`. Supply `-Seed somevalue` if you would like | |
| to run a specific seed (see the examples below). | |
| function Start-Noita { | |
| <# | |
| .SYNOPSIS | |
| Starts Noita from a PowerShell prompt, optionally with a specific set seed for a new game. | |
| .DESCRIPTION | |
| To use this function, copy and paste the complete function definition into a PowerShell | |
| session, and then invoke it with `Start-Noita`. Supply `-Seed somevalue` if you would like | |
| to run a specific seed (see the examples below). | |