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
#pragma once | |
class NonCopyable | |
{ | |
protected: | |
// 1. provide default ctor so it doesn't have to be explicitly defined in inherited classes | |
// 2. make NonCopyable class abstract so it can't be instantiated | |
NonCopyable() {} | |
/*virtual*/ ~NonCopyable() {} |
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
Windows ® Installer. V 5.0.18362.1 | |
msiexec /Option <Required Parameter> [Optional Parameter] | |
Install Options | |
</package | /i> <Product.msi> | |
Installs or configures a product | |
/a <Product.msi> | |
Administrative install - Installs a product on the network | |
/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>] |
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://askubuntu.com/a/445496 | |
From 10.04 up to 20.04: | |
Ubuntu Debian | |
20.04 focal bullseye/ sid - 11 | |
19.10 eoan buster / sid - 10 | |
19.04 disco buster / sid | |
18.10 cosmic buster / sid | |
18.04 bionic buster / sid |
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
RUN Write-Host 'Downloading iisnode' ; \ | |
$MsiFile = $env:Temp + '\iisnode.msi' ; \ | |
(New-Object Net.WebClient).DownloadFile('https://github.com/tjanczuk/iisnode/releases/download/v0.2.21/iisnode-full-v0.2.21-x64.msi', $MsiFile) ; \ | |
Write-Host 'Installing iisnode' ; \ | |
Start-Process msiexec.exe -ArgumentList '/i', $MsiFile, '/quiet', '/norestart' -NoNewWindow -Wait |
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
HEALTHCHECK CMD powershell -command ` | |
try { ` | |
$response = iwr http://localhost:80 -UseBasicParsing; ` | |
if ($response.StatusCode -eq 200) { return 0} ` | |
else {return 1}; ` | |
} catch { return 1 } |
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://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 | |
### | |
# escape=` | |
# Use the latest Windows Server Core image with .NET Framework 4.8. | |
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 | |
# Restore the default Windows shell for correct batch processing. |
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
# base image uses node latest minor version of 12.m | |
#FROM node:12-stretch-slim | |
FROM mongo:4.0-xenial | |
# create and set cwd | |
WORKDIR /code | |
# copy npm's package state files | |
COPY package.json . | |
COPY package-lock.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
_MSC_VER Defined as an integer literal that encodes the major and minor number elements of the compiler's version number. The major number is the first element of the period-delimited version number and the minor number is the second element. For example, if the version number of the Microsoft C/C++ compiler is 17.00.51106.1, the _MSC_VER macro evaluates to 1700. Enter cl /? at the command line to view the compiler's version number. This macro is always defined. | |
Visual Studio version, _MSC_VER | |
Visual Studio 6.0 1200 | |
Visual Studio .NET 2002 (7.0) 1300 | |
Visual Studio .NET 2003 (7.1) 1310 | |
Visual Studio 2005 (8.0) 1400 | |
Visual Studio 2008 (9.0) 1500 | |
Visual Studio 2010 (10.0) 1600 |
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
== Visual Studio .NET 2003 (DO NOT COPY THIS LINE) == | |
Microsoft Visual Studio Solution File, Format Version 8.00 | |
# Visual Studio .NET 2003 | |
VisualStudioVersion = 7.1 | |
== Visual Studio 2005 (DO NOT COPY THIS LINE) == | |
Microsoft Visual Studio Solution File, Format Version 9.00 | |
# Visual Studio 2005 | |
VisualStudioVersion = 8.0 |
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/sh | |
UBUNTU_RELEASE=bionic | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install -qqy \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
NewerOlder