Skip to content

Instantly share code, notes, and snippets.

View mamiysr's full-sized avatar
🏠
Working from home

Muhammed Yaşar mamiysr

🏠
Working from home
View GitHub Profile
@mamiysr
mamiysr / fiber.txt
Created February 16, 2022 16:40
nbio vs fiber
Running 2m test @ http://127.0.0.1:3000
12 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 218.10ms 356.47ms 2.00s 84.72%
Req/Sec 2.78k 3.39k 29.05k 90.03%
2340836 requests in 1.50m, 290.21MB read
Socket errors: connect 0, read 0, write 0, timeout 3009
Requests/sec: 25983.31
Transfer/sec: 3.22MB
@mamiysr
mamiysr / youtube_formats.md
Created August 7, 2021 21:15 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@mamiysr
mamiysr / Nodejs - AdonisJS 4.0.1 - NT 10
Last active April 7, 2019 22:16
Laravel 5.8 vs Adonis 4.0.1 - Stock performance benchmark
{
"RunType": "HTTP",
"Labels": "Adonisjs 4.0.1",
"StartTime": "2019-03-25T06:56:16.89565264+03:00",
"RequestedQPS": "1000",
"RequestedDuration": "5s",
"ActualQPS": 25.707662632092333,
"ActualDuration": 5523644916,
"NumThreads": 10,
"Version": "1.3.2-pre",
@mamiysr
mamiysr / Cluster setup hints
Created January 18, 2017 15:43 — forked from SinanGabel/Cluster setup hints
CouchDB 2.0 on Ubuntu 16.04
# See also: http://docs.couchdb.org/en/latest/cluster/index.html
# Before you can add nodes to form a cluster, you have to have them listen on a public ip address
# and set up an admin user (use same admin:password for all nodes).
# Do this, once per node:
# If you have installed couchdb in /opt (else change the Path)
cd /opt/couchdb/etc
cp local.ini local.ini.orig
cp vm.args vm.args.orig
@mamiysr
mamiysr / laravel-mongodb-sentinel
Created August 20, 2016 09:50 — forked from Bodom78/laravel-mongodb-sentinel
Use the Sentinel 2.x authentication package with Laravel 5.1 and MongoDB
Work in Progress: More testing to be done.
At a glance Authentication, Activation, Throttle, Groups & Permissions seem to
be working.
Downside: Copy and modify files.
Upside: Not really much work to get it up and running.
Assumes you have Laravel 5.1, jenssegers/laravel-mongodb + session addon set up
and your app is namespaced to App/
@mamiysr
mamiysr / PdfParser.php
Created March 2, 2016 15:54 — forked from smalot/PdfParser.php
Use this static class to extract Text from Pdf files. It supports compressed and uncompressed Pdf (version 1.1 to 1.7) : tested It supports octal encoded (eg : \050) content, but not hexadecimal (eg : <005E>). In some cases, it works better than "pdftotext" binary tool.
<?php
/**
* @file
* Class PdfParser
*
* @author : Sebastien MALOT <[email protected]>
* @date : 2013-08-08
*
* References :