Skip to content

Instantly share code, notes, and snippets.

FROM node:10.16.0-alpine
WORKDIR /usr/app
COPY ./package.json ./
RUN npm install --quiet
COPY . .
RUN npm run build
EXPOSE 3001
@ridomin
ridomin / mygitconfig.txt
Created June 24, 2019 16:52
MyGitConfig
git config --global user.name ridomin
git config --global user.email ridomin@live.com
git config --global alias.co checkout
git config --global alias.st status
@ridomin
ridomin / CreateTestCertificateChain.ps1
Last active June 14, 2019 20:42
CreateTestCertificateChain.ps1
$RootCACert= New-SelfSignedCertificate -KeyUsage KeyEncipherment, DataEncipherment, CertSign -HashAlgorithm SHA256 -KeyUsageProperty All -KeyLength 4096 -Subject "1TestRootCA" -FriendlyName "testRoot" -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -certstorelocation cert:\CurrentUser\My -dnsname "RidoITHub.azure-devices.net" -TextExtension @("2.5.29.19 ={text}ca=1&pathlength=3")
$IMCACert = New-SelfSignedCertificate -KeyUsage KeyEncipherment, DataEncipherment, CertSign -HashAlgorithm SHA256 -KeyUsageProperty All -KeyLength 4096 -Subject "1TestSubCA01" -FriendlyName "SubCA-01" -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -certstorelocation cert:\CurrentUser\my -dnsname "RidoITHub.azure-devices.net" -TextExtension @("2.5.29.19 ={text}ca=1&pathlength=0") -Signer $RootCACert
$TestCert = New-SelfSignedCertificate -KeyUsage KeyEncipherment, DataEncipherment -HashAlgorithm SHA256 -KeyUsageProperty All -KeyLength 4096 -Subject "1test-device01" -FriendlyName "Test
@ridomin
ridomin / RidoStoreID-Fake.csr
Created March 15, 2019 02:40
C5A4ABA7655B2B11C41FAAE43A9D4FC2FA438E6F
-----BEGIN CERTIFICATE-----
MIIDWjCCAkKgAwIBAgIQNTNW0ACgSW2unlFdYp4egjANBgkqhkiG9w0BAQsFADAv
MS0wKwYDVQQDEyRGRDc4NDMyMi0zRDQ0LTREQTQtOUY3My0wRTIzRDVERjA4OTMw
HhcNMTkwMTA0MTkxNDA2WhcNMjA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runtimeOptions": {
"tfm": "netcoreapp3.0",
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "3.0.0-preview-27409-12"
},
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
<PackageDependency Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Name="Microsoft.VCLibs.140.00.Debug" MinVersion="14.0.26917.0" />
<ItemGroup>
<Reference Include="Windows">
<HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
@ridomin
ridomin / runtime.config.json
Created December 12, 2018 18:15
runtime.config.json
{
"runtimeOptions": {
"tfm": "netcoreapp3.0",
"framework": {
"name": "Microsoft.DesktopUI.App",
"version": "3.0.0-alpha-27128-4"
},
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
@ridomin
ridomin / XAML_Button_TextBox.xaml
Last active June 1, 2018 21:44
XAML_Button_TextBox.xaml
<StackPanel>
<Button Content="Start" HorizontalAlignment="Center" />
<TextBox x:Name="MyTextBox" AcceptsReturn="True" Width="600" Height="300" />
</StackPanel>