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 / 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 "
]
}
@uzbekdev1
uzbekdev1 / auction.sol
Created July 21, 2022 19:04
Solidity auction demo
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract SimpleAuction {
// Parameters of the auction. Times are either
// absolute unix timestamps (seconds since 1970-01-01)
// or time periods in seconds.
address payable public beneficiary;
uint public auctionEndTime;
// Current state of the auction.
@uzbekdev1
uzbekdev1 / notepad.url
Created July 12, 2022 10:14
Chrome notepad window
data:text/html,<html contenteditable>
@uzbekdev1
uzbekdev1 / router.ts
Created July 6, 2022 20:02
angular router logs
constructor(private router: Router) {
router.events.pipe(filter((e: Event): e is RouterEvent => e instanceof RouterEvent)).subscribe((e: RouterEvent) => {
console.log(e);
});
}