| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
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 QuestPDF.Fluent; | |
| using QuestPDF.Helpers; | |
| using QuestPDF.Infrastructure; | |
| Document.Create(container => | |
| { | |
| container.Page(page => | |
| { | |
| page.Margin(50); | |
| page.Size(PageSizes.A4); |
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
| static async Task Main(string[] args) | |
| { | |
| // Generate Base64 Key Sample | |
| //using (var aes = Aes.Create()) | |
| //{ | |
| // Console.WriteLine(Convert.ToBase64String(aes.Key)); | |
| //} | |
| var plainText = "Hello World!!"; | |
| Console.WriteLine($"PlainText: {plainText}"); |
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
| public static string MD5_HexConvert_Static(string input) | |
| { | |
| var inputBytes = Encoding.UTF8.GetBytes(input); | |
| var hashBytes = MD5.HashData(inputBytes); | |
| return Convert.ToHexString(hashBytes); | |
| } |
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
| public static class DapperExtensions | |
| { | |
| private static readonly IEnumerable<TimeSpan> RetryTimes = new[] | |
| { | |
| TimeSpan.FromSeconds(1), | |
| TimeSpan.FromSeconds(2), | |
| TimeSpan.FromSeconds(3), | |
| TimeSpan.FromSeconds(4) | |
| }; |
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"> | |
| <NuGetReference>Microsoft.EntityFrameworkCore.InMemory</NuGetReference> | |
| <NuGetReference>Swashbuckle.AspNetCore</NuGetReference> | |
| <Namespace>Microsoft.AspNetCore.Builder</Namespace> | |
| <Namespace>Microsoft.EntityFrameworkCore</Namespace> | |
| <Namespace>Microsoft.Extensions.DependencyInjection</Namespace> | |
| <Namespace>Microsoft.OpenApi.Models</Namespace> | |
| <Namespace>Microsoft.AspNetCore.Http</Namespace> | |
| <IncludeAspNet>true</IncludeAspNet> | |
| <RuntimeVersion>6.0</RuntimeVersion> |
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
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
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
| # dotNetDave's (David McCarter) Editor Config - dotNetTips.com | |
| # Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5 | |
| # Updated February 2023 | |
| # dotNetDave's books available at: http://bit.ly/RockYourCodeBooks | |
| # Rockin' the Code World with dotNetDave (weekly live show): https://www.c-sharpcorner.com/live/rockin-the-code-world-with-dotnetdave | |
| root = true | |
| # All Files | |
| [*] |
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
| GITEA_DATA_DIR=/tmp/gitea |
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
| $$('*').forEach(e => {e.style.outline = "1px solid #" + (~~(Math.random()*(1<<24))).toString(16);e.style.outlineOffset='-1px'} ) |
