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 / 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 / angular.json
Last active September 26, 2022 06:12
Angular refreshing version
{
"assets":[
"src/config.json "
]
}
@aspose-com-gists
aspose-com-gists / EwsConnectionWithAppAuth.cs
Last active December 12, 2023 23:20
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);
@aspose-com-gists
aspose-com-gists / read-emails-from-shared-mailbox.cs
Last active December 12, 2023 23:24
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
@pablotolentino
pablotolentino / Visual Studio 2022 Product Key
Created November 20, 2021 20:41
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@uzbekdev1
uzbekdev1 / haproxy.sh
Created October 12, 2021 09:32 — forked from ergoz/haproxy.sh
RabbitMQ cluster with HAProxy & Keepalived for high availability
# install haproxy
yum install -y haproxy
# config haproxy for rabbitmq
cat > /etc/haproxy/haproxy.cfg << "EOF"
global
log 127.0.0.1 local0 notice
maxconn 10000
user haproxy
@uzbekdev1
uzbekdev1 / remote.md
Last active November 6, 2020 19:26 — forked from Arkham/remote.md
Remote, office not required

Remote, Office Not Required

The Time is Right for Remote Work

Why work doesn't happen at work

The office during the day has become the last place people want to be when then really want to get work done.

Offices have become interruption factories: it's just one interruption after

@alecjacobson
alecjacobson / denoise.sh
Last active July 31, 2023 10:05
Remove background audio noise from a video clip via the command line (using ffmpeg and sox)
#!/bin/bash
if [ -z "$2" ];then
echo 'USAGE:
denoise input.mov output.mov
OR
denoise input.mov output.mov [ambient-noise-start-time] [ambient-noise-duration] [sox-noisered-amount] [sox-norm-param]
@markrendle
markrendle / Program.cs
Created April 14, 2020 23:12
Get server URLs in .NET Core 3.1 app
public static async Task Main(string[] args)
{
var host = CreateHostBuilder(args).Build();
var task = host.RunAsync();
var serverAddresses = host.Services.GetRequiredService<IServer>()
.Features
.Get<IServerAddressesFeature>();
@uzbekdev1
uzbekdev1 / gist:1190d842544db7067fc9a4e14b54091a
Created January 28, 2020 19:47
sql server short format date
select FORMAT (getdate(), 'dd.MM.yyyy')