winget install -e --id ShareX.ShareX ;
winget install -e --id 7zip.7zip ;
winget install -e --id Ditto.Ditto ;
winget install -e --id Microsoft.PowerToys ;
winget install -e --id JanDeDobbeleer.OhMyPosh ;
winget install -e --id Adobe.Acrobat.Reader.64-bit ;
This is very common scenario when testing APIs in postman, we have a collection of request and those requests needs to be authenticated first. Most of the time we have to run the auth request first, grab the token from the response and then go request per request and add the token or simple create a variable in Postman and add the token, still saving the token in a variable requires to run the auth request again once the token expires.
Here is a code snippet that can help with that.
📓 Of course there is no code to rule them all, so adjust the code base on your environment variables and data used for authentication.
// Get environment variables
First you have to set this flag
var settings = new ConnectionSettings(connectionPool)
.DisableDirectStreaming();
📓This is for Nest client 6.X
: Debug Information in 6.x
the default is true
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') { | |
Import-Module PSReadLine | |
} | |
Import-Module -Name Terminal-Icons | |
I was trying to install dotnet EF tools and got this error:
PS C:\juniper\test\Orders.EfPoc> dotnet tool install --global dotnet-ef
C:\Users\ddieppa\AppData\Local\Temp\mu2fjtmo.dfa\restore.csproj : error NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/repzio/729f155b-9685-408c-af3d-87fe3992cafa/_packaging/imcdi/nuget/v3/index.json.
The tool package could not be restored.
Overloading
vsOverriding
Overloading
: Is the ability to have multiple methods within the same class with the same name, but with different parameters. Each of these methods has their own implementation as well, meaning that they can behave differently depending on what is passed in.Overriding
: Is the ability to redefine the implementation of a method in a class that inherits from a parent class. When a method is overridden, the name and the parameters stay the same, but the implementation that gets called depends on the type of the object that's calling it.
DI
(Dependency Injection) what is and what solve?DI
: Is a software design pattern, which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies. Is a technique whereby one object (or static method) supplies the dependencies of another object
- Solve: Is a key part of building loosely coupled applications, since implementation details can b