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.Collections.Generic; | |
using System.Drawing; | |
using ColorMine.ColorSpaces; | |
using ColorMine.ColorSpaces.Comparisons; | |
namespace ColorHarvestor | |
{ | |
class Program | |
{ | |
//Make sure to import ColorMine nuget. |
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
SELECT | |
DB_NAME(dbid) as DBName, | |
COUNT(dbid) as NumberOfConnections, | |
loginame as LoginName | |
FROM | |
sys.sysprocesses | |
WHERE | |
dbid > 0 | |
GROUP BY | |
dbid, loginame |
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
namespace MyNamespace | |
{ | |
#pragma warning disable // Disable all warnings | |
/// <summary>Forbidden model</summary> | |
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.4.2.0")] | |
public partial class Forbidden | |
{ |
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
param([string]$version) | |
function Push-Package | |
{ | |
param([string]$location, [string]$projectName, [string]$nugetServer, [string]$apiKey, [string]$packageName=$projectName) | |
Set-Location -Path $location | |
nuget pack "$($projectName).csproj" | |
nuget push "$($packageName).$($version).nupkg" -s $nugetServer $apiKey |
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
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | |
RUN apt-get update -yq \ | |
&& apt-get install curl gnupg -yq \ | |
&& curl -sL https://deb.nodesource.com/setup_15.x | bash \ | |
&& apt-get install nodejs -yq |