Skip to content

Instantly share code, notes, and snippets.

View masterfermin02's full-sized avatar
๐ŸŒŽ
Hello world!

Fermin Perdomo masterfermin02

๐ŸŒŽ
Hello world!
View GitHub Profile
@masterfermin02
masterfermin02 / README.md
Last active March 27, 2021 17:33
Vicidial Google Chrome and Javascript Throttling fix

Fix google chrome and Javascript Throttling.

Fix

You need to add this code to the agc/vicidial.php file:

1- Add this variable around line 4708

var source = null

@masterfermin02
masterfermin02 / originate_call.php
Created February 8, 2022 20:06 — forked from anpel/originate_call.php
Originate a call from Asterisk using PHP and Asterisk Manager Interface
/**
* Once this scipt is executed it will connect to the local port you have assigned to
* Asterisk (default: 5038) and send an authentication request. If successfull, it will
* send a second request to originate your call.
*
* The internal SIP line $internalPhoneline will be dialed, and when picked up the
* $target phone will be dialed using your outbound calls context ($context).
*
* Of course, you can modify the commands sent to the asterisk manager interface to suit your needs.
* you can find more about the available options at:
@masterfermin02
masterfermin02 / solve.js
Created March 5, 2023 12:44
Domino Tiling - M x N Board with Holes
class Queue {
constructor() {
this.list = []
this.head = 0
}
push(e) { this.list.push(e) }
pop() { return this.list[this.head++] }
empty() { return this.list.length == this.head }
}
<?php
enum Grade: string
{
case PASS = 'pass';
case FAIL = 'fail';
case A = 'A';
case F = 'F';
case INVALID = 'Invalid grade!\n';
@masterfermin02
masterfermin02 / FIlters.php
Created April 7, 2025 02:24
Paypal service
<?php
namespace App\Extension\Paypal\Traits;
use Carbon\Carbon;
trait Filters
{
/**
* @var array