dotnet publish --nologo -c Release -r win10-x64 --self-contained=false /p:PublishSingleFile=true /p:PublishTrimmed=false /p:PublishReadyToRun=false -o work1
dotnet publish --nologo -c Release -r win10-x64 --self-contained=true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:PublishReadyToRun=false -o work2
dotnet publish --nologo -c Release -r win10-x64 --self-contained=true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:PublishReadyToRun=false -o work3
dotnet publish --nologo -c Release -r win10-x64 --self-contained=true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:PublishReadyToRun=true -o work4
dotnet publish --nologo -c Release -r win10-x64 --self-contained=true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:PublishReadyToRun=true -o work5
This file contains 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
for c in wslfetch wslpath wslsys wslupath wslusc wslvar wslview | |
do | |
alias $c="PATH=$PATH:/mnt/c/windows/system32 $c" | |
done | |
alias open=wslview | |
This file contains 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
#!/bin/bash | |
SUBSCRIPTION_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
RESOURCE_GROUP_NAME=foobar-rg | |
STATIC_SITE_NAME=foobar-swa | |
DOMAIN=purple-apple-0611x5701.azurestaticapps.net | |
USER_DETAILS=foobar@costoco.com | |
cat << EOJ > properties.json | |
{ |
This file contains 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
C:\Windows\Fonts\BIZ-UDGothicB.ttc, BIZ UDゴシック, Bold, 0.5, PreviewAndPrint | |
C:\Windows\Fonts\BIZ-UDGothicR.ttc, BIZ UDゴシック, Regular, 0.5, PreviewAndPrint | |
C:\Windows\Fonts\BIZ-UDMinchoM.ttc, BIZ UD明朝, Medium, 0.5, PreviewAndPrint | |
C:\Windows\Fonts\HGRGE.TTC, HGゴシックE, 標準, 0.5, Editable | |
C:\Windows\Fonts\HGRGM.TTC, HGゴシックM, メディウム, 0.5, Editable | |
C:\Windows\Fonts\HGRGY.TTC, HG行書体, メディウム, 0.5, Editable | |
C:\Windows\Fonts\HGRKK.TTC, HG教科書体, メディウム, 0.5, Editable | |
C:\Windows\Fonts\HGRMB.TTC, HG明朝B, ボールド, 0.5, Editable | |
C:\Windows\Fonts\HGRME.TTC, HG明朝E, 標準, 0.5, Editable |
This file contains 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
# https://stackoverflow.com/a/32247214/910906 | |
(New-Object System.Data.OleDB.OleDBEnumerator).GetElements() | Select-Object SOURCES_NAME, SOURCES_DESCRIPTION | |
This file contains 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" standalone="yes"?> | |
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" | |
xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" | |
xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" | |
xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"> | |
<numFmts count="2"> | |
<numFmt numFmtId="178" formatCode="[$-411]ggge"年"m"月"d"日";@"/> | |
<numFmt numFmtId="179" formatCode="[$]ggge"年"m"月"d"日";@" x16r2:formatCode16="[$-ja-JP-x-gannen]ggge"年"m"月"d"日";@"/> | |
</numFmts> |
This file contains 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 Azure.Storage.Blobs; | |
using Azure.Storage.Blobs.Models; | |
// Azure Storage Blobs client library for .NET | |
// https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md | |
// samples | |
// https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs/samples | |
namespace blob |
This file contains 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
# invoke-psake -task Init,Publish | |
Task default -Depends Publish | |
Task Init { | |
dotnet new console -o .\singleexe -n singleexe | |
} | |
Task Publish { | |
cd singleexe | |
dotnet publish --nologo -c Release -r win10-x64 --self-contained=false /p:PublishSingleFile=true -o work1 |
This file contains 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
if ($host.Name -eq 'ConsoleHost') | |
{ | |
if(-not (Get-Module PSReadline)) | |
{ | |
Install-Package PSReadline -Force | |
} | |
Import-Module PSReadline | |
Set-PSReadlineOption -EditMode Emacs | |
Set-PSReadlineKeyHandler -Key Ctrl+R -Function HistorySearchBackward |
This file contains 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
# Startupscript for PowerShell Cloud Shell | |
# User profile script location | |
$script:CurrentHostProfilePath = (Join-Path $env:USERPROFILE 'CloudDrive\Microsoft.PowerShell_profile.ps1') | |
$script:AllHostsProfilePath = (Join-Path $env:USERPROFILE 'CloudDrive\profile.ps1') | |
$script:AzureRMProfileModule = 'AzureRM.Profile' | |
if ($PSVersionTable.PSEdition -eq 'Core') | |
{ | |
$script:AzureRMProfileModule = 'AzureRM.Profile.NetCore' |