- Chocolatey: https://chocolatey.org/install#individual
- OpenSSL for windows:
choco install openssl - StackOverflow: https://stackoverflow.com/a/62586085/9541789
openssl genrsa -out private.pem 8192
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| using Azure.Storage.Blobs; | |
| using Azure.Storage.Blobs.Models; | |
| using MangoAPI.Application.Interfaces; | |
| using Microsoft.AspNetCore.Http; | |
| namespace MangoAPI.Application.Services | |
| { |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace CoinChangeProblem | |
| { | |
| public static class DynamicChangeHelper | |
| { | |
| public static int MinimalChangeForCoin(int coin, IEnumerable<int> coins) | |
| { |
| using System; | |
| namespace CoinChangeProblem.UI | |
| { | |
| public static class Program | |
| { | |
| public static void Main() | |
| { | |
| var user = new User("initial_name"); | |
| user.SetName("test_1"); |
choco install opensslopenssl genrsa -out private.pem 8192| using System.ComponentModel; | |
| namespace DCC.WTMP.Modules.Configuration.Domain.Company; | |
| /// <summary> | |
| /// ISO-3166 Alpha-2 country codes. | |
| /// https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes | |
| /// </summary> | |
| public enum CountryEnum | |
| { |
| // See https://aka.ms/new-console-template for more information | |
| using System.Runtime.InteropServices; | |
| const string s = "hello world."; | |
| Span<char> span = MemoryMarshal.CreateSpan(ref MemoryMarshal.GetReference(s.AsSpan()), s.Length); | |
| span[11] = '!'; | |
| Console.WriteLine(s); |
| server { | |
| server_name STATIC_IP_ADDRESS_OF_VM; | |
| location / { | |
| include proxy_params; | |
| proxy_pass http://127.0.0.1:8080; | |
| } | |
| location /swagger { | |
| include proxy_params; |
| [Unit] | |
| Description=Mango Messenger Backend Service for Azure Dev Environment | |
| After=network.target | |
| [Service] | |
| Environment=ASPNETCORE_URLS=http://+:8080/ | |
| Environment=MANGO_JW_ISSUER="https://front.mangomessenger.company" | |
| Environment=MANGO_JWT_AUDIENCE="https://back.mangomessenger.company" | |
| Environment=MANGO_JWT_SIGN_KEY="d32d7cea-4cb8-4488-aa94-323ffb8cbdf4" | |
| Environment=MANGO_EMAIL_NOTIFICATIONS_ADDRESS="[email protected]" |
| using System.Net.Http; | |
| using Extreme.Bot; | |
| using Extreme.Bot.Services; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Telegram.Bot; | |
| var builder = WebApplication.CreateBuilder(args); | |
| var botConfiguration = ConfigurationService.CreateConfiguration(); |