Skip to content

Instantly share code, notes, and snippets.

View NikiforovAll's full-sized avatar
🇺🇦

Oleksii Nikiforov NikiforovAll

🇺🇦
View GitHub Profile
jq -s '.[0] as $hstt | .[1] | map(.transport = $hstt[.base])' hs-tt.json usage2.json // enrich data with slurp
jq '[{ r: .root[], s: .services } | .r as $r | select(.s | contains([$r.base])) | .r | select(.base | length > 2 )] | unique_by(.invocation + .base) | sort_by(.
base)' t.json > usage2.json // join
@NikiforovAll
NikiforovAll / foo
Created May 28, 2020 22:34
bella-communication-diagram-source
bar
@NikiforovAll
NikiforovAll / styleset.csproj
Last active December 14, 2020 10:27
styleset
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Custom Rulset" Description="Custom Rulset" ToolsVersion="14.0">
<Rules AnalyzerId="AsyncUsageAnalyzers" RuleNamespace="AsyncUsageAnalyzers">
<Rule Id="UseConfigureAwait" Action="Error" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1652" Action="None" />
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1633" Action="None" />
<Rule Id="SA1200" Action="None" />
@NikiforovAll
NikiforovAll / comments.md
Last active August 2, 2020 12:26
vscode workspace example

Design goals

The idea is to have workspace setup

  • List of projects: Component1, Component2
  • source to act project, starting with mnt-

It is useful to have workspace registry. There is a vscode extension to make use of it.

@NikiforovAll
NikiforovAll / remoteContainers.log
Created September 10, 2020 09:43
vscode-remote-release/issues/3642
[48 ms] Start: Resolving remote
[51 ms] Setting up container for folder or workspace: c:\Users\HYS\Exercism
[208 ms] Start: Run: git rev-parse --show-toplevel
[309 ms] Start: Check Docker is running
[310 ms] Start: Run: docker info
[544 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\HYS\Exercism --filter label=vsch.quality=stable
[774 ms] Start: Run: docker inspect --type container bc64fa72b351
[960 ms] Start: Removing existing container.
[960 ms] Start: Run: docker rm -f bc64fa72b3517c9ccada0128f40261a37f9e216ff211eeeae689e1db0c754020
@NikiforovAll
NikiforovAll / gist:9f7d2e7c1d32a60d334b29bb7aff0e3a
Created September 14, 2020 08:55
Example of how to run workspace containing dotnet core and dotnet framework projects
{
"folders": [
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_contacts\\Nuts.Telecom.Contacts"
},
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_crmbackend_adapter\\Nuts.Telecom.CrmBackendAdapter"
},
{
"path": "..\\mnt-contacts_crmbackend-adapter-devtest"
@NikiforovAll
NikiforovAll / scenario.sh
Created September 21, 2020 16:03
Work with .NET Framework via CLI
# Test
dotnet build --configuration Test1
nunit3-console.exe --explore ./bin/Test1/Tests.dll
nunit3-console.exe --where 'method = MethodName' ./bin/Test1/Tests.dll --trace=Debug
# Find packages via nuget
nuget list Processes -Source <sourceName> -PreRelease -Verbosity detailed
# Database
@NikiforovAll
NikiforovAll / asp-net-core-in-action-review.md
Last active October 27, 2022 11:25
improving-as-a-software-developer.md
@NikiforovAll
NikiforovAll / PermutationsSource.cs
Last active October 19, 2020 20:23
csharp-loves-patterns
using System;
using System.Collections.Generic;
using System.Linq;
namespace LinqProviderExample
{
public class PermutationsSource
{
public PermutationsSource(params string[] words) => this.words = words;
private readonly HashSet<string> _generated = new();
@NikiforovAll
NikiforovAll / ContinueWith.cs
Last active December 18, 2020 23:52
playing with continuewith and custom synchronization context
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace cancellation_demo1
{
public static class ContinueWith
{