Skip to content

Instantly share code, notes, and snippets.

View uzbekdev1's full-sized avatar
🌴
On vacation

Elyor Latipov uzbekdev1

🌴
On vacation
View GitHub Profile
@uzbekdev1
uzbekdev1 / Visual Studio 2022 Product Key
Created January 24, 2024 12:24 — forked from pablotolentino/Visual Studio 2022 Product Key
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@uzbekdev1
uzbekdev1 / terminate.cs
Created December 18, 2023 04:59 — forked from jvshahid/terminate.cs
C# terminating a child process (as opposed to killing, i.e. sigkill vs. sigint on linux)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace TestCtrlEvent
@uzbekdev1
uzbekdev1 / read-emails-from-shared-mailbox.cs
Created December 12, 2023 23:24 — forked from aspose-com-gists/read-emails-from-shared-mailbox.cs
Read Emails from Shared Mailbox on Exchange Server in C# .NET
const string mailboxUri = "<HOST>";
const string domain = "";
const string username = "<EMAIL ADDRESS>";
const string password = "<PASSWORD>";
const string sharedEmail = "<SHARED EMAIL ADDRESS>";
// Setup credentials
NetworkCredential credentials = new NetworkCredential(username, password, domain);
// Connect to server
@uzbekdev1
uzbekdev1 / EwsConnectionWithAppAuth.cs
Created December 12, 2023 23:20 — forked from aspose-com-gists/EwsConnectionWithAppAuth.cs
How To Connect to Microsoft365 Mailbox using Modern Authentication in C# .NET
// Use Microsoft365 username and access token
NetworkCredential credentials = new OAuthNetworkCredential(username, accessToken);
using var client = EWSClient.GetEWSClient("https://outlook.office365.com/EWS/Exchange.asmx", credentials);
@uzbekdev1
uzbekdev1 / no scams
Created November 7, 2023 20:23
Top 20 crypto-currencies
https://coinmarketcap.com/currencies/gala/
https://coinmarketcap.com/currencies/mina/
https://coinmarketcap.com/currencies/the-sandbox/
https://coinmarketcap.com/currencies/near-protocol/
https://coinmarketcap.com/currencies/vechain/
https://coinmarketcap.com/currencies/internet-computer/
https://coinmarketcap.com/currencies/filecoin/
https://coinmarketcap.com/currencies/uniswap/
https://coinmarketcap.com/currencies/xrp/
https://coinmarketcap.com/currencies/chainlink/
@uzbekdev1
uzbekdev1 / reset.sh
Created May 18, 2023 07:04
Reset docker images
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
@uzbekdev1
uzbekdev1 / ef.readme
Last active April 11, 2023 12:05
EF Core sql code generator
1) Code behind migration
Add-Migration DbInit
Add-Migration ChangeModuleTable
2) SQL script generation
Script-DbContext -Output .\Demo\SP.Migrator\Scripts\Dbinit.sql
@uzbekdev1
uzbekdev1 / gist:0baf3c4877d201953b69b8e8c8516f77
Created February 23, 2023 00:47 — forked from KarolinaCzo/gist:72a356c19eb511ad8a7b4594bdfa159b
Add @fortawesome/fontawesome-free to an Angular project
How to add Font Awesome @fortawesome/fontawesome-free to an Angular project?
1) Go to the project directory
2) Install Font Awesome as said on their website:
https://fontawesome.com/how-to-use/on-the-web/setup/getting-started?using=web-fonts-with-css
through npm: npm install --save @fortawesome/fontawesome-free
Use '--save' not '--save-dev'
3) Add Font Awesome to 'styles' in 'anguler.json':
@uzbekdev1
uzbekdev1 / Nginx-minio-static.md
Created November 4, 2022 11:55 — forked from kanolato/Nginx-minio-static.md
How to configure nginx+minio static website?

Ubuntu 16.04

  1. Install nginx
  2. Install minio
  3. Install mc client
  4. Create a bucket:
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
@uzbekdev1
uzbekdev1 / angular.json
Last active September 26, 2022 06:12
Angular refreshing version
{
"assets":[
"src/config.json "
]
}