Skip to content

Instantly share code, notes, and snippets.

View NikiforovAll's full-sized avatar
🇺🇦

Oleksii Nikiforov NikiforovAll

🇺🇦
View GitHub Profile
@NikiforovAll
NikiforovAll / asp-net-core-in-action-review.md
Last active October 27, 2022 11:25
improving-as-a-software-developer.md
@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 / 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 / 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 / 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 / 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 / foo
Created May 28, 2020 22:34
bella-communication-diagram-source
bar
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 / msbuild-output-error-issues-441
Created May 5, 2020 21:10
msbuild-output-error-tye/issues/441
23:53:31.418 2>Done building target "Restore" in project "Tools.proj".: (TargetId:31)
23:53:31.418 2>Target "InstallDotNetCore: (TargetId:32)" in file "<removed>\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\InstallDotNetCore.targets" from project "<removed>\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Tools.proj" (entry point):
Set Property: _DotNetInstallScript=<removed>\dev\tye\eng\common\dotnet-install.cmd
Task "Exec" skipped, due to false condition; ('$(OS)' != 'Windows_NT') was evaluated as ('Windows_NT' != 'Windows_NT').
Using "InstallDotNetCore" task from assembly "<removed>\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\netcoreapp2.1\Microsoft.DotNet.Arcade.Sdk.dll".
Task "InstallDotNetCore" (TaskId:30)
Task Parameter:VersionsPropsPath=<removed>\dev\tye\eng\Versions.props (TaskId:30)
Task Parameter:GlobalJso
@NikiforovAll
NikiforovAll / .gitattributes
Last active April 22, 2020 15:13
Build/Delivery scripts for dotnet
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain