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
| # Github action to clone PR to another repository. | |
| name: clone-pr | |
| on: | |
| pull_request: | |
| types: [ opened ] | |
| branches: [ main ] | |
| jobs: | |
| clone: |
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 Disposable | |
| { | |
| public static IDisposable Create(Action dispose) => | |
| new DisposableAction(dispose); | |
| public static IAsyncDisposable Create(Func<ValueTask> dispose) => | |
| new AsyncDisposableAction(dispose); | |
| private sealed class DisposableAction: IDisposable |
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
| // Workaround for https://github.com/dotnet/efcore/issues/17936 | |
| // Requires https://www.nuget.org/packages/LinqKit/ | |
| // EFCoreHacks.Rewrite is a custom "expression optimizer" for LinqKit, which should be set to LinqKitExtension.QueryOptimizer | |
| // I do it in my DbContext static constructor. It allows us to use SelectEF and FirstOrDefaultEF extensions methods, | |
| // which are to be rewritten before the expression is passed to EF query translator. Those force EF to use OUTER APPLY with proper predicate. | |
| // | |
| // SelectEF(exp) -> .Select(exp).Take(Int32.MaxValue).ToArray(); | |
| // FirstOrDefaultEF -> .Take(1).ToArray().FirstOrDefault(); | |
| // |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced] | |
| "DisabledHotkeys"="Q" |
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
| Set-PSReadLineOption -Colors @{ | |
| "Default" = [ConsoleColor]::Black | |
| "Parameter" = [ConsoleColor]::Black | |
| "Type" = [ConsoleColor]::DarkBlue | |
| "Number" = [ConsoleColor]::Magenta | |
| "String" = [ConsoleColor]::Magenta | |
| "Command" = [ConsoleColor]::Magenta | |
| "Comment" = [ConsoleColor]::Yellow | |
| "Variable" = [ConsoleColor]::Green | |
| "Keyword" = [ConsoleColor]::Blue |
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
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": [ | |
| { | |
| "command": { | |
| "action": "copy", | |
| "singleLine": false | |
| }, | |
| "id": "User.copy.644BA8F2", |
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
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#325CC0", | |
| "properties": { |
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
| "workbench.colorTheme": "Visual Studio Light", | |
| "workbench.colorCustomizations": { | |
| "editor.background": "#F7F7F7", | |
| "editor.foreground": "#000", | |
| "editor.lineHighlightBackground": "#F0F0F0", | |
| "editor.selectionBackground": "#BFDBFE", | |
| "editor.selectionHighlightBackground": "#E0E0E0", | |
| "panel.background": "#F0F0F0", | |
| "sideBar.background": "#F0F0F0", | |
| "editorGroupHeader.tabsBackground": "#F0F0F0", |