I hereby claim:
- I am vors on github.
- I am vors (https://keybase.io/vors) on keybase.
- I have a public key whose fingerprint is 5397 6AD9 7CCE 3AB7 751D 0A8B 2532 CAE8 5D8D 6940
To claim this, I am signing this object:
| /* | |
| To automate your slack instance invites, | |
| 1. Create a google form with two text fields: | |
| "Your email" | |
| "Who invite you" | |
| 2. You will get a google table with responses and 3 fields: | |
| 1) "Timestamp" |
| function Convert-MamlLinksToMarkDownLinks | |
| { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory=$false, ValueFromPipeline=$true)] | |
| $maml | |
| ) | |
| process | |
| { |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "id": "http://schema.management.azure.com/schemas/2014-04-01/Microsoft.Powershell.DSC.json", | |
| "title": "Microsoft.Powershell.DSC", | |
| "description": "Microsoft.Powershell.DSC Extension for Azure VMs", | |
| "definitions": { | |
| "DscConfigurationArguments": { | |
| "oneOf": [ | |
| { | |
| "type": "array", |
| function Convert-XmlElementToString | |
| { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| $xml | |
| ) | |
| $sw = [System.IO.StringWriter]::new() | |
| $xmlSettings = [System.Xml.XmlWriterSettings]::new() |
| # don't use it, it's a workaround | |
| class ClassWithConst | |
| { | |
| [ValidateSet(100)] | |
| static [int] $CONST_FOO = 100 | |
| } | |
| [ClassWithConst]::CONST_FOO | |
| [ClassWithConst]::CONST_FOO = 10 |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <!-- Replace this gist by your own blog gist --> | |
| <script src="https://gist.github.com/vors/4bf101a457e6816f3c0f.js"></script> | |
| <script type="text/javascript"> | |
| $( document ).ready(function() { | |
| $('.markdown-body > p > code') | |
| .css("white-space","nowrap"); |
| <# | |
| .SYNOPSIS | |
| You should never use Write-Host to create any script output whatsoever. | |
| .DESCRIPTION | |
| It is generally accepted that you should never use Write-Host to create any script output whatsoever, unless your script (or function, or whatever) uses the Show verb (as in, Show-Performance). | |
| That verb explicitly means “show on the screen, with no other possibilities.” Like Show-Command. | |
| To fix a violation of this rule, please replace Write-Host with Write-Output in most scenarios. | |
| .EXAMPLE | |
| Test-WriteHost -CommandAst $CommandAst | |
| .INPUTS |
| // past this line to dev tools console | |
| a = $(".closed.octicon"); for (var i = 0; i < a.length; i++) { a[i].style.color = 'green'}; a = $(".open.octicon"); for (var i = 0; i < a.length; i++) { a[i].style.color = 'red'} |
| # This is $profile.CurrentUserAllHosts file | |
| function Get-IsSessionIntaractive() { | |
| $parentProcess = Get-Process -id (Get-WmiObject Win32_Process -Filter "ProcessId = '$pid'").ParentProcessId | |
| $parentProcess.Name -eq "explorer" | |
| } | |
| # put your profile in this file and access it with $psrc instead of $profile | |
| $psrc = 'C:\Users\sevoroby\Documents\WindowsPowerShell\psrc.ps1' | |
| if (Get-IsSessionIntaractive) |