Notes about programming C#, asp.net, mvc, webapi, angularjs, jquery, angular 2, SQL Server

  • CRON examples

    ExpressionMeaning

    0 0 12 * * ?

    Fire at 12pm (noon) every day

    0 15 10 ? * *

    Fire at 10:15am every day

    0 15 10 * * ?

    Fire at 10:15am every day

    0 15 10 * * ? *

    Fire at 10:15 … more

  • Update windows Path

    set PATH=%PATH%;"C:\Windows\Microsoft.NET\Framework\v4.0.30319" more

  • Remote access to local web app

    netsh interface portproxy add v4tov4 listenport=800 connectaddress=127.0.0.1 connectport=82 protocol=tcp

    more

  • ASP.NET Identity add new user and role

    var user = new ApplicationUser { Email = "email@gmail.com", UserName = "email@gmail.com" };

    var result = await UserManager.CreateAsync(user, "PwD!23");

    await RoleManager.CreateAsync(new Microsoft. … more

  • Multithreaded load testing C#

    Multithreaded load testing C#private static async Task LoadTest(){ System.Net.ServicePointManager.DefaultConnectionLimit = 200;// IMPORTANT!!! double threads = 16; int requestsNumber = 800; … more

  • Azure copy all files from one container to another

    C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy>azcopy /Source:https://<name>.blob.core.windows.net/<container> /Dest:https://<name>.blob.core.windows.net/<container> /SourceKey:"<storage key>" / … more