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
<rule name="Whitelist IPs" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="*" /> | |
<conditions> | |
<add input="{REMOTE_ADDR}" pattern="212.203.321.40" negate="true" /> | |
<add input="{REMOTE_ADDR}" pattern="5.13.161.12" negate="true" /> | |
</conditions> | |
<action type="AbortRequest" /> | |
</rule> | |
<rule name="WWW to non WWW" stopProcessing="true"> |
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 SerilogTest | |
{ | |
using System; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ |
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 ubuntu:18.04 | |
LABEL maintainer="[email protected]" | |
LABEL version="0.1" | |
LABEL description="This is custom image for node projects development" | |
# Disable prompt during packages installation | |
ARG DEBIAN_FRONTEND=noninteractive | |
# Update repository and install all common required bits and pieces |
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
import subprocess | |
import json | |
import sys | |
def parse_version(version_str): | |
try: | |
# Remove any non-numeric characters like '^' or '~' | |
return [int(x) for x in version_str.replace('^', '').replace('~', '').split('.')] | |
except ValueError: | |
# Handle non-numeric versions differently or skip them |
OlderNewer