Skip to content

Instantly share code, notes, and snippets.

View Lethea's full-sized avatar
🎯
Focusing

Emre Karataşoğlu Lethea

🎯
Focusing
View GitHub Profile
@Lethea
Lethea / my.cnf
Created September 23, 2020 09:45 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@Lethea
Lethea / nginx-tuning.md
Created September 23, 2019 15:25 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@Lethea
Lethea / asterisk_webrtc.md
Created November 1, 2018 08:53 — forked from bigyan/asterisk_webrtc.md
[Configure Asterisk with webrtc support] Setting up asterisk for webrtc #asterisk #webrtc #sipml5 #configuration

Setting up Asterisk for webrtc

To set up with sipml5 I had been through the asterisk offiial site and I do recommand you to visit it.

We need to update several config file which are located on /etc/asterisk. Those filename are listed below

  1. modules.conf
  2. extensions.conf
  3. http.conf
  4. pjsip.conf
  5. rtp.conf
@Lethea
Lethea / gist:30ff3f27f17f99d84aac68c6f47b6970
Created April 5, 2018 21:21 — forked from grvhi/gist:fbda7c0afed03ae1ef8c
AWS Lambda Function to Trigger ElasticTranscoder Job on S3 Upload
console.log('Checking newly uploaded file');
var AWS = require('aws-sdk');
var s3 = new AWS.S3({apiVersion: '2006-03-01'});
var eltr = new AWS.ElasticTranscoder({
apiVersion: '2012-09-25',
region: 'us-east-1'
});
// ID of pipeline
var pipelineId = 'myID';
// ID of ET's web output preset
@Lethea
Lethea / gist:7ddcf5679fd30f61187996f7742fa086
Created July 28, 2016 20:59 — forked from ivarprudnikov/gist:ae2bbaaae80aa60a1eb2
Streaming MxPEG from Mobotix IP camera via VLC
// hepful links
https://wiki.videolan.org/MxPEG/
http://stackoverflow.com/questions/1735933/streaming-via-rtsp-or-rtp-in-html5
http://en.wikipedia.org/wiki/Internet_media_type
http://www.videolan.org/doc/videolan-howto/en/ch09.html
http://www.videolan.org/doc/streaming-howto/en/ch03.html
http://www.mobotix.com/eng_GB/Support/User-Forum/Applications/Putting-Mobotix-live-video-stream-on-a-Web-site-How-To
http://www.linuxquestions.org/questions/linux-desktop-74/how-to-stream-a-webcam-to-http-with-vlc-929319/
#
# https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
# based on the RSnake original http://ha.ckers.org/xss.html
# Retrieved on 2013-11-20
# Much of this wildly obsolete
#
# XSS Locator 2
'';!--"<XSS>=&{()}