Skip to content

Instantly share code, notes, and snippets.

View kmrtylmz's full-sized avatar
👨‍💻

Mert Yılmaz kmrtylmz

👨‍💻
  • Turkey
View GitHub Profile
@kmrtylmz
kmrtylmz / spinnerLoader.js
Last active May 13, 2022 07:54
Spinner Loading with FontAwesome Animation Icons
// https://fontawesome.com/v5.15/how-to-use/on-the-web/styling/animating-icons
(function($) {
$.fn.propStart = function() {
// Default Font-Awesome Spin ..
$loading = !$(this).attr("data-loading-text") ? "<i class='fas fa-sync fa-spin'></i>" :
$(this).attr('data-loading-text');
$(this).attr('data-original-content', $(this).html().replace(/"/g, '\'')).html($loading).prop('disabled',
true);
@kmrtylmz
kmrtylmz / gist:d78dcef2c5a709e20a4d50ee0962cbfa
Created September 18, 2021 16:53 — forked from oswaldoacauan/gist:7580474
jQuery - Serialize Form with File inputs
(function($) {
$.fn.serializeFiles = function() {
var form = $(this),
formData = new FormData()
formParams = form.serializeArray();
$.each(form.find('input[type="file"]'), function(i, tag) {
$.each($(tag)[0].files, function(i, file) {
formData.append(tag.name, file);
});
@kmrtylmz
kmrtylmz / RTPEngine_installattion.md
Created May 24, 2021 11:28 — forked from altanai/RTPEngine_installattion.md
RTPEngine installattion on Ubuntu 18 on EC2

update the newly created instance

sudo apt update -y

Install rtpengine dependecies

sudo apt-get install debhelper iptables-dev libcurl4-openssl-dev 
libpcre3-dev libxmlrpc-core-c3-dev markdown libavfilter-dev 
libavformat-dev libavresample-dev libevent-dev libglib2.0-dev libhiredis-dev 
libjson-glib-dev libpcap0.8-dev libpcap-dev libssl-dev dkms module-assistant 
@kmrtylmz
kmrtylmz / README.md
Created April 27, 2021 06:39 — forked from yusrilhs/README.md
Freepbx + Nginx configuration with support wss

Introduction

This configuration I have used for my project using Elastix 4. I have stacked using Apache with consuming 100% of CPU for each process while using webphone. Currently webphone is used by 10 agent and that run stable using nginx + php-fpm. I hope this configuration help for another guy to work with FreePBX or Elastix 4.

Open for a good sugestion.