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 / program.cs
Created February 8, 2026 01:40
check uzbek cyrl regex
public static bool IsUzbekCyrillic(string text)
{
return Regex.IsMatch(text, @"[А-Яа-яҚқЎўҒғҲҳ]");
}
public static bool IsRussianCyrillic(string text)
{
return Regex.IsMatch(text, @"[А-Яа-яЫыЭэЪъЬь]");
}

MEGA Downloader

MEGA.nzmega.nz

We make secure cloud storage simple. Create an account and get 50 GB free on MEGA's end-to-end encrypted cloud collaboration platform today!

Mega.n Downloader Script

A script to download file from Mega.n and read it. (Using PHP)

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@uzbekdev1
uzbekdev1 / test.cs
Created December 19, 2025 17:41
minio impl Amazon.S3 client
using Amazon.S3;
using Amazon.S3.Model;
AmazonS3Client s3Client = CreateS3Client();
await UploadFile(s3Client);
await ListAllObjects(s3Client);
await DownloadObject(s3Client);
[ApiController]
[Route("api/[controller]/[action]")]
[Produces("application/json")]
public abstract class BaseController : ControllerBase
{
[FromHeader(Name = DeviceProperties.DEVICE_TYPE_KEY)]
[DefaultValue(DeviceCodes.Browser)]
public string DeviceType { get; set; }
@uzbekdev1
uzbekdev1 / application.json
Created October 6, 2025 10:37
cilent ocrs
{
"ClientUrls": [
"http://localhost:2755",
"https://mb.ipakyulibank.uz:2744",
"https://mb.ipakyulibank.uz:2755"
],
}
@uzbekdev1
uzbekdev1 / GlobalMiddleware.cs
Created October 6, 2025 10:30
error handling
public class GlobalMiddleware
{
private readonly RequestDelegate _next;
private readonly ILogger<GlobalMiddleware> _logger;
public GlobalMiddleware(RequestDelegate next,ILogger<GlobalMiddleware> logger)
{
_next = next;
@uzbekdev1
uzbekdev1 / Api.csproj
Last active October 6, 2025 10:17
open telementry
<ItemGroup>
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.7.1" />
</ItemGroup>
@uzbekdev1
uzbekdev1 / GoogleService.cs
Created October 6, 2025 09:55
google recaptcha
public class RecaptchaResponse
{
[JsonProperty("success")]
public bool Success { get; set; }
[JsonProperty("error-codes")]
public List<string> ErrorCodes { get; set; }
}
@uzbekdev1
uzbekdev1 / GlobalMiddleware.cs
Created October 6, 2025 09:47
authenticator validation
public class GlobalMiddleware
{
private readonly RequestDelegate _next;
public GlobalMiddleware(RequestDelegate next )
{
_next = next;
}