Skip to content

Instantly share code, notes, and snippets.

View SamDeimos's full-sized avatar
🎯
Focusing

Santiago Gutierrez SamDeimos

🎯
Focusing
View GitHub Profile
@SamDeimos
SamDeimos / 00_README.md
Created April 5, 2022 01:34 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Paymentez
{
const API_LOGIN_DEV = "";
const API_KEY_DEV = "";
public $unix_timestamp;
public $uniq_token_string;
public $uniq_token_hash;
@SamDeimos
SamDeimos / gist:5929d22fc5a52936383a8317d10de5a5
Created July 15, 2019 16:13 — forked from hellc2/gist:cd537fb1788a8195fe85
Ejemplo de conexión al Manager de Asterisk con Node.JS y la librería Asterisk-Manager
/**
* port: port server
* host: host server
* username: username for authentication
* password: username's password for authentication
* events: this parameter determines whether events are emited.
**/
var ami = new require('asterisk-manager')('port','host','username','password', true);
// In case of any connectiviy problems we got you coverd.
@SamDeimos
SamDeimos / Apache_PHP.sh
Created July 11, 2019 21:06 — forked from hemantshekhawat/Apache_PHP.sh
Gearman Job Server for CentOS 7
###### Install Apache/httpd and PHP
# Before you begin any installation, make sure that your software is up to date:
sudo yum update
#Install Apache:
sudo yum install httpd
#Start Apache:
sudo systemctl start httpd.service
#Set Apache to start on server boot:
sudo systemctl enable httpd.service
@SamDeimos
SamDeimos / Asterisk.php
Last active September 9, 2022 13:23
Librería de codeigniter para generar llamadas usando comando Originate de Asterisk
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Asterisk
{
//Variables call
protected $timeout = 30000;
protected $contexto = 'from-internal';
protected $asterisk_ip = "127.0.0.1";
protected $user_AMI = ""; # Usuario Asterisk
protected $pass_AMI = ""; # Pass Asterisk