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
@alecjacobson
alecjacobson / denoise.sh
Last active May 1, 2025 05:53
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]
@alvinveroy
alvinveroy / drag-and-drop-file-upload.markdown
Created April 16, 2020 10:47
Drag-and-Drop File Upload

Drag-and-Drop File Upload

No preprocessor or library needed. The progress bar is functional, just not on CodePen.

A Pen by Ushinro on CodePen.

License.

@ThatRendle
ThatRendle / 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')
@righettod
righettod / pdf_metadata_cleanup.md
Last active May 12, 2025 21:56
Java and C# code to cleanup the metadata from a PDF document.

Code sample

All librairies used are free and open source.

Java

/* 
  See https://pdfbox.apache.org 
  See https://mvnrepository.com/artifact/org.apache.pdfbox/pdfbox for released artifacts
@z-------------
z------------- / telegram.css
Created October 1, 2019 16:34
Light custom style for Telegram Web. Wider messages list and enableable dark theme (`html.theme-dark`)
/* font */
body, body.non_osx {
font-family: "SF Pro Text", "Noto Sans CJK TC", sans-serif;
}
/* theming */
html {
--color-background: #ffffff;
@ergoz
ergoz / haproxy.sh
Created October 1, 2019 10:14 — forked from trungv0/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
@akbar-pardayev
akbar-pardayev / complete
Last active January 22, 2021 17:31
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';
@uzbekdev1
uzbekdev1 / media-query.css
Created September 10, 2019 06:58 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@grant
grant / Dockerfile
Created August 3, 2019 01:32
Run Node 12 Dockerfile
# Use the official Node.js 12 image.
# https://hub.docker.com/_/node
FROM node:12
# Create and change to the app directory.
WORKDIR /usr/src/app
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
# Copying this separately prevents re-running npm install on every code change.
COPY package*.json ./
# Install production dependencies.