Skip to content

Instantly share code, notes, and snippets.

View mrmuminov's full-sized avatar
🎯
Focusing

Bahriddin Mo'minov mrmuminov

🎯
Focusing
  • Dataprizma LLC
  • Uzbekistan / Andijan
  • 22:25 (UTC +05:00)
View GitHub Profile
@yetimdasturchi
yetimdasturchi / find.php
Created February 13, 2024 05:31
Find key from array with levenshtein distance
<?php
function findArrayWithLevenshtein( $input, $dic ) {
$minDistance = PHP_INT_MAX;
$correctedWord = $input;
foreach ( $dic as $key => $value ) {
$distance = levenshtein( $input, $key );
if ( $distance < $minDistance ) {
$minDistance = $distance;
@mrmuminov
mrmuminov / generic.md
Last active July 13, 2023 19:45
PHP swagger. Generic response

Parent (Base, Main) response schema

#[OA\Schema]
class BaseResponse {
    #[OA\Property]
    public ?string $message = null;
    #[OA\Property(type: 'object')]
    public mixed $result = null;     
}
@mrmuminov
mrmuminov / youtube.md
Last active April 5, 2023 04:59
Dasturlash darslariga havolalar

Youtube channels

# Channels Texnologiyalar
1 Alitech HTML, Javascript, ES6, JQuery, CSS, Bootstrap, Sass, ReactJS, Ilustrator, ...
2 Botir Ziyatov HTML5, Python, Telegram Bot (python), Django, Server, ...
3 Code Leader PHP, GIT, HTML&HTML5, MySQL, Bootstrap, ...
4 Farkhod Dadajanov Windows, Linux, Cisco, Agular, SQL, Javascript, Ma'lumotlar tuzilmasi, NodeJS(full), GIT, Tensorflow, MongoDB, Docker, Go, ASP.Net Core, Compyuter Visoin, ReactJS, ...
5 [Javohir Group](https://www.youtube.
@mrmuminov
mrmuminov / command.sh
Last active April 2, 2021 06:07
Remote backup of PostgreSQL, MySQL via SSH
***
*** of PostgreSQL
ssh user@host "pg_dump -U db_user -h localhost -C --column-inserts" \ > dblocal.sql.gz
*** of MySQL
ssh user@host "mysqldump -u db_user -p db_name | gzip -9" > dblocal.sql.gz
================================================================================
tiny.cc/streamlist
tiny.cc/URLz
=
============================== RADIO STREAMS ===================================
!!!! 99 JAMZ :
$ mpv http://oom-cmg.streamguys1.com/mia991/mia991-tunein.mp3
@xl1
xl1 / gist:0b24fb2e61c39448a38d3c90b6c6fe3b
Last active January 14, 2023 02:24
binary string, ArrayBuffer, Blob, base64 string の相互変換
const convert = {
binary: {
toArrayBuffer(binary) {
return Uint8Array.from(binary, s => s.charCodeAt(0)).buffer;
},
toBlob(binary, mimeType) {
return new Blob([binary], { type: mimeType });
},
toBase64: binary => btoa(binary)
},
@bennylope
bennylope / ffmpeg-watermark.md
Created April 22, 2016 23:17 — forked from webkader/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.

@jenikm
jenikm / vba_russian_transliterate.vb
Created June 29, 2012 19:44
VBA Russian transliterate function
'http://www.utf8-chartable.de/unicode-utf8-table.pl?start=1024&utf8=-&unicodeinhtml=dec
'use numerical HTML column
Function Transliterate(Russian As String)
letters = Array("A", "B", "V", "G", "D", "E", "YO", "ZH", "Z", "I", "Y", "K", "L", "M", "N", "O", "P", "R", "S", "T", "U", "F", "H", "TZ", "CH", "SH", "SCH", "", "Y", "", "E", "YU", "YA", "a", "b", "v", "g", "d", "e", "yo", "zh", "z", "i", "y", "k", "l", "m", "n", "o", "p", "r", "s", "t", "u", "f", "h", "tz", "ch", "sh", "sch", "", "y", "", "e", "yu", "ya", "#")
i = 1040
For Each letter In letters
Dim val As String
Select Case letter
Case "YO"
val = ChrW(1025)