This file contains hidden or 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
<Query Kind="Statements"> | |
<NuGetReference Prerelease="true">Microsoft.SemanticKernel.Connectors.Ollama</NuGetReference> | |
<Namespace>Microsoft.SemanticKernel</Namespace> | |
<Namespace>Microsoft.Extensions.DependencyInjection</Namespace> | |
<Namespace>Microsoft.Extensions.Logging</Namespace> | |
<Namespace>Microsoft.SemanticKernel.ChatCompletion</Namespace> | |
<Namespace>Microsoft.SemanticKernel.Connectors.Ollama</Namespace> | |
<Namespace>System.Text.Json.Serialization</Namespace> | |
<Namespace>System.ComponentModel</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> |
This file contains hidden or 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
// Package Required: Microsoft.EntityFrameworkCore.Relational | |
// In this example, I am using the EF Core driver (Pomelo.EntityFrameworkCore.MySql) from the Pomelo Foundation Project to generate DDL for MariaDB. | |
// However, you can also use any other driver you want (Microsoft SQL Server, Sqlite, Oracle, etc.). | |
using System.ComponentModel.DataAnnotations; | |
using Microsoft.EntityFrameworkCore; | |
using Pomelo.EntityFrameworkCore.MySql; | |
using Pomelo.EntityFrameworkCore.MySql.Infrastructure; |
This file contains hidden or 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
/* | |
<!-- Project Configuration --> | |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>WinExe</OutputType> | |
<TargetFramework>net8.0-windows</TargetFramework> | |
<Nullable>enable</Nullable> | |
<UseWindowsForms>true</UseWindowsForms> | |
<UseWPF>false</UseWPF> | |
<ImplicitUsings>disable</ImplicitUsings> |
This file contains hidden or 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:22.04 | |
RUN sed -i -e 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list | |
RUN set -xe \ | |
&& apt -y update \ | |
&& apt -y install apt-utils tzdata locales | |
ENV TZ=Asia/Seoul | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ | |
&& echo $TZ > /etc/timezone |
This file contains hidden or 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
<Query Kind="Statements"> | |
<NuGetReference>Microsoft.Extensions.Caching.StackExchangeRedis</NuGetReference> | |
<NuGetReference>Microsoft.Garnet</NuGetReference> | |
<Namespace>Garnet</Namespace> | |
<Namespace>Garnet.server</Namespace> | |
<Namespace>Garnet.server.Auth.Settings</Namespace> | |
<Namespace>Microsoft.AspNetCore.Builder</Namespace> | |
<Namespace>Microsoft.AspNetCore.Http</Namespace> | |
<Namespace>Microsoft.Extensions.DependencyInjection</Namespace> | |
<Namespace>StackExchange.Redis</Namespace> |
This file contains hidden or 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
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\System.DirectoryServices.dll</Reference> | |
<Namespace>Microsoft.Win32</Namespace> | |
<Namespace>Microsoft.Win32.SafeHandles</Namespace> | |
<Namespace>System.ComponentModel</Namespace> | |
<Namespace>System.DirectoryServices</Namespace> | |
<Namespace>System.Runtime.InteropServices</Namespace> | |
<Namespace>System.Security.Principal</Namespace> | |
<Namespace>System.Collections.ObjectModel</Namespace> | |
</Query> |
This file contains hidden or 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
// This sample code requires Mono.TextTemplating.Roslyn >= 2.3.1 nuget package | |
using System; | |
using Microsoft.VisualStudio.TextTemplating; | |
using Mono.TextTemplating; | |
using System.CodeDom.Compiler; | |
using System.Threading; | |
using System.Threading.Tasks; | |
internal static class Program |
This file contains hidden or 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
/* | |
After running as administrator | |
- Entering the "winrm quickconfig" command if this is your first time setting up winrm | |
- If you get an error message that says it failed because your network profile is set to public, that's okay. | |
- To allow all external connections, run "winrm s winrm/config/client @{TrustedHosts="*"}" command | |
- After you're done testing, run the "winrm s winrm/config/client @{TrustedHosts=""}" command | |
*/ | |
var credential = default(TokenCredential); |
This file contains hidden or 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; | |
using System.Security.Cryptography; | |
// Original Source Code: https://github.com/RedAndBlueEraser/rdp-file-password-encryptor | |
// System.Security.dll required | |
public static class Program | |
{ | |
public static void Main() | |
{ |
This file contains hidden or 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; | |
using System.Globalization; | |
public static class Program | |
{ | |
private static void Main() | |
{ | |
var prompt = string.Empty; | |
prompt = Prompt |
NewerOlder