This file contains 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
var categories = Enum.GetValues(typeof(CategoryType)).Cast<CategoryType>().ToList(); | |
categories.Dump(); | |
categories.ForEach(t => { | |
(t == CategoryType.Category2).Dump(); | |
}); | |
public enum CategoryType | |
{ |
This file contains 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
https://localhost:20215/connect/token | |
{ | |
"grant_type": "password", | |
"client_id": "Angular", | |
"username": "****", | |
"password": "*****", | |
"scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService UnderwriterService DealerService" | |
} |
This file contains 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
https://localhost:20215/connect/token | |
{ | |
"grant_type": "password", | |
"client_id": "Angular", | |
"username": "admin", | |
"password": "1q2w3E*", | |
"scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService UnderwriterService DealerService" | |
} |
This file contains 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
if you got key not found | |
https://stackoverflow.com/questions/57012001/invalidoperationexception-key-type-not-specified-microsoft-aspnetcore-apiautho | |
For File | |
"IdentityServer": { | |
"Key": { | |
"Type": "File", | |
"FilePath": "C:\cert.pfx", |
This file contains 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
docker logs -f | |
docker ps -a | |
docker-compos down | |
docker run -ti abp/host:latest sh | |
docker run -ti abp/host:latest sh | |
docker exec -ti abp/host:latest bash | |
docker logs -f outputs_abp_host_1 | |
docker network create dotnet | |
docker-compos down |
This file contains 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
const convertToKababCase = (str) => { | |
if (!str) | |
return '' | |
return str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, '-').toLowerCase().replace('"', ''); | |
} |
This file contains 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
void Main() | |
{ | |
// var asd = Directory.GetDirectories(@"D:\MyWork", "*.*", SearchOption.AllDirectories); | |
// | |
// var asdad1 = asd.Where(t =>t.EndsWith("node_modules") && (t.IndexOf("node_modules")==t.LastIndexOf("node_modules") && t.IndexOf("node_modules")!=-1)).ToList(); | |
// asdad1.Dump(); | |
GetRootDirectoryByName(@"D:\MyWork","node_modules").Dump(); | |
GetAllSubDirectory(@"D:\MyWork").Dump(); | |
} |
This file contains 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 EF_CONNECTIONSTRING="Server=(localdb)\\mssqllocaldb;Database=aspnet-BlazorApp1-723203BA-B167-4E72-BF83-6B7DDA6E8865;Trusted_Connection=True;MultipleActiveResultSets=true" | |
dotnet ef database update --context ElsaContext | |
dotnet tool install --global dotnet-ef --version 6.0.7 |
This file contains 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
"Http failure during parsing for https://grants-requests.mbrhe.gov.ae/getEnvConfig" | |
in environment.prod.ts file | |
comment this to solve error | |
// remoteEnv: { | |
// url: '/getEnvConfig', | |
// mergeStrategy: 'deepmerge' | |
// } |
This file contains 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" /> | |
void Main() | |
{ | |
DinnerItems myOrder = DinnerItems.Appetizer | DinnerItems.Entree | | |
DinnerItems.Beverage | DinnerItems.Dessert; | |
DinnerItems flagValue = DinnerItems.Entree | DinnerItems.ertert;// | DinnerItems.Beverage; |
NewerOlder