This file contains hidden or 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
| using System; | |
| using System.Management.Automation; | |
| namespace MyTypeAdapter | |
| { | |
| internal class CustomProperty : | |
| PSAdaptedProperty | |
| { | |
| public CustomProperty( | |
| string name, |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <Configuration> | |
| <ViewDefinitions> | |
| <View> | |
| <Name>InstalledModulesGroupedTableView</Name> | |
| <ViewSelectedBy> | |
| <TypeName>System.Management.Automation.PSObject#InstalledModuleInfo</TypeName> | |
| </ViewSelectedBy> | |
| <GroupBy> |
This file contains hidden or 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
| 特記事項のないものに関しては、コンソールに表示されたものと、ファイルにリダイレクトしたものは同じ。 |
This file contains hidden or 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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFramework>netcoreapp2.2</TargetFramework> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <DotNetCliToolReference Include="Swashbuckle.AspNetCore.Cli" Version="5.0.0-rc2" /> | |
| </ItemGroup> |
This file contains hidden or 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
| $url = 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' | |
| $headers = @{ | |
| 'Content-Type' = 'application/json; charset=utf-8' | |
| 'Accept' = 'application/json; charset=utf-8; api-version=3.2-preview.1' | |
| 'User-Agent' = 'VSIDE-16.0.28803.352' | |
| } | |
| $body = @{ | |
| flags = 262 |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <?xml-model href="https://raw.githubusercontent.com/aetos382/Aerie.PowerShell.Schemas/master/PowerShellFormatDefinitions.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?> | |
| <?xml-model href="https://raw.githubusercontent.com/aetos382/Aerie.PowerShell.Schemas/master/PowerShellFormatDefinitions.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?> | |
| <Configuration> | |
| <ViewDefinitions> | |
| <View> | |
| <Name>PSRepositoryItemInfoTableView</Name> | |
| <ViewSelectedBy> | |
| <TypeName>Microsoft.PowerShell.Commands.PSRepositoryItemInfo</TypeName> | |
| </ViewSelectedBy> |
This file contains hidden or 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 Get-CommandParameter { | |
| param( | |
| [Parameter(Mandatory, Position = 0, ValueFromPipeline)] | |
| [string] $Name, | |
| [ValidateNotNullOrEmpty()] | |
| [string[]] $ParameterSetName = @(), | |
| [switch] $IncludeCommonParameters) |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| const int MaxAttempts = 100; | |
| foreach (var s in GenerateDdsk().DoWhile(x => !x.LoveInjected).Take(MaxAttempts).Select(x => x.Ddsk)) | |
| { | |
| Console.WriteLine(s); | |
| } |
This file contains hidden or 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
| [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'AppPassword')] | |
| param( | |
| [Parameter(Mandatory)] | |
| [string] $AccountHandle, | |
| [Parameter(Mandatory)] | |
| [string] $AppPassword) | |
| function New-HashTag { |