このGistの内容は随時更新します。
- 2021/6/29 時点 : Windows 11 Pro 21H2 (Build 22000.51)
- Insider preview から更新
# | |
# CloudFormation Rain Docker image | |
# | |
# How to build: | |
# docker build -t aws-cfn-rain . | |
# How to use (e.g. docker run from PowerShell host): | |
# docker run --rm -it -v "$HOME/.aws/:/root/.aws" -v "$($pwd.Path):/aws" -e AWS_PROFILE aws-cfn-rain --version | |
# docker run --rm -it -v "$HOME/.aws/:/root/.aws" -v "$($pwd.Path):/aws" -e AWS_PROFILE aws-cfn-rain deploy ./sample.yaml | |
# | |
FROM amazon/aws-cli:latest |
function Set-AWSCredentialWithRegion { | |
[CmdletBinding()] | |
param ( | |
[string]$ProfileName | |
) | |
# Invoke Set-AWSCredential first | |
Write-Verbose "Invoke Set-AWSCredential -ProfileName $ProfileName " | |
Set-AWSCredential -ProfileName $ProfileName -Scope Global | |
if (-not $StoredAWSCredentials) { |
$params = @{ | |
Uri = 'https://github.com/koron/vim-kaoriya/releases/download/v8.1.1048-20190325/vim81-kaoriya-win64-8.1.1048-20190325.zip'; | |
OutFile = Join-Path $env:TEMP 'vim.zip' | |
} | |
Invoke-WebRequest @params | |
Expand-Archive -LiteralPath (Join-Path $env:TEMP 'vim.zip') -DestinationPath $env:ProgramFiles |
$null | % {$i=0} {"$i : $_";$i++} | |
[System.Management.Automation.Internal.AutomationNull]::Value | % {$i=0} {"$i : $_";$i++} | |
@("a", $null, "c") | % {$i=0} {"$i : $_";$i++} | |
@("a", [System.Management.Automation.Internal.AutomationNull]::Value, "c") | % {$i=0} {"$i : $_";$i++} |
# | |
# 最新バージョンの.NET Core SDKをインストーラーからインストールするスクリプト | |
# ※1 インストーラーのインストールは要管理者権限です | |
# ※2 Zipファイルからの展開は公式の dotnet-install.ps1 を使いましょう | |
# https://docs.microsoft.com/ja-jp/dotnet/core/tools/dotnet-install-script | |
# | |
# 現在最新の.NET Core SDKのバージョンを取得 | |
$commitHash, $version = -split (Invoke-RestMethod -Uri https://dotnetcli.azureedge.net/dotnet/Sdk/Current/latest.version) | |
# MSIインストーラーをダウンロードしてサイレントインストール |