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 / MemoryCacheManager.cs
Created February 10, 2021 21:14 — forked from vlapenkov/MemoryCacheManager.cs
MemoryCacheManager
public class MemoryCacheManager
{
#region Fields
private readonly IMemoryCache _cache;
/// <summary>
/// All keys of cache
/// </summary>
/// <remarks>Dictionary value indicating whether a key still exists in cache</remarks>
@uzbekdev1
uzbekdev1 / client-socket-reconnect.js
Created January 22, 2021 17:31 — forked from sio2boss/client-socket-reconnect.js
Node.js Re-connecting Socket
//
// Simple example of using net.Socket but here we capture the
// right events and attempt to re-establish the connection when
// is is closed either because of an error establishing a
// connection or when the server closes the connection.
//
// Requires
var net = require('net');
@uzbekdev1
uzbekdev1 / complete
Created January 22, 2021 17:31 — forked from akbar-pardayev/complete
CLICK SHOP API prepare and complete requests handler simple example
<?php
error_reporting(0);
header('Content-Type: text/json');
header('Charset: UTF-8');
$request = $_POST;
$merchant_id = 'YOUR MERCHANT ID';

Features of Minio Server.

Item Specification
Custom access key environment MINIO_ACCESS_KEY
Custom secret key environment MINIO_SECRET_KEY
Turn off web browser environment MINIO_BROWSER=off
Listening on bucket notifications using an extended S3 API
Support for bucket notifications postgres, amqp, nats, elasticsearch, redis, kafka (in-progress)
Shared Backend (FS) In-progress
@uzbekdev1
uzbekdev1 / nginx.conf
Created January 18, 2021 07:55 — forked from steve-ng/nginx.conf
Nginx reverse proxy wss with ssl
server {
listen 443 ssl;
server_name xxx.xx.io
ssl on;
ssl_certificate /etc/asterisk/certs/xxx.io.pem;
ssl_certificate_key /etc/asterisk/certs/xxx.io.key;
ssl_session_timeout 5m;
@uzbekdev1
uzbekdev1 / gist:3a562a1edf03cb7e49ab966556055e05
Created December 26, 2020 20:28 — forked from stereokai/gist:36dc0095b9d24ce93b045e2ddc60d7a0
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
@uzbekdev1
uzbekdev1 / validation_optimization.txt
Created December 22, 2020 09:06
Strange challenge - validation of strings and optimization of code [30 min for both]
Author's punctuation style is preserved.
Challenge:
- Assume most recent language standard are available (ES6)
- We expect good performance.
- If missing more requirements details, just make reasonable assumptions of your own.
- Solution must be simple and compact.
No defensive coding, no comments, no unrequested features.
Only one file 10-20 lines of code
- Work only inside Google Docs: no external editor/IDE/debugger, no copy-paste to/from such an editor.
@uzbekdev1
uzbekdev1 / denoise.sh
Created December 2, 2020 10:59 — forked from alecjacobson/denoise.sh
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]
@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

@uzbekdev1
uzbekdev1 / consoles.md
Created November 4, 2020 21:30 — forked from udif/consoles.md
CMD.exe replacements for Windows

http://mintty.github.io/ - Mintty is a terminal emulator for Cygwin, MSYS and Msys2.
https://sourceforge.net/projects/poderosa/ - A terminal emulator with tabbed user interface and various connectivity including Telnet, SSH1/2, and cygwin.
http://www.softwareok.com/?seite=Freeware/ColorConsole - ColorConsole brings a little color to your black and white world of Windows console (cmd.exe).
https://conemu.github.io/ - ConEmu-Maximus5 is a Windows console emulator with tabs, which presents multiple consoles and simple GUI applications as one customizable GUI window with various features.
http://www.powercmd.com/ - PowerCmd: A Better Command Prompt Replacement Tool.
http://cmder.net/ - Portable console emulator for windows.
https://sourceforge.net/projects/console/ - Console is a Windows console window enhancement.
https://jpsoft.com/tccle-cmd-replacement.html - TCC/LE Windows CMD Replacement Shell : Upgrade Your CMD Commands.
http://www.gammadyne.com/cmdline.htm#gs - GS.EXE is an alternative DOS