Skip to content

Instantly share code, notes, and snippets.

View garronej's full-sized avatar
🧢
Bluehat

Joseph Garrone garronej

🧢
Bluehat
View GitHub Profile
@garronej
garronej / extensions.conf
Created May 5, 2017 06:24
Dialplan example adding buffer to chan_dongle
[from-dongle]
exten = _[+0-9].,1,NoOp(Inbound dongle channel from dongle)
same = n,Dial(sip/alice,,b(from-dongle^set_up_outbound^1))
exten = set_up_outbound,1,NoOp(Outbound sip channel from dongle)
same = n,Set(JITTERBUFFER(fixed)=2500,10000)
same = n,Return()
[from-sip]
exten = _[+0-9].,1,NoOp(Inbound sip channel from sip)
@garronej
garronej / insall_node_raspbery.txt
Last active October 16, 2017 23:12
Installing node on raspberry pi
node -v
v0.10.29
sudo su
apt-get remove nodered -y
apt-get remove nodejs nodejs-legacy -y
apt-get remove npm -y # if you installed npm
cd /usr/src
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
From 13f1c2f80e373f95979757b4436dc600ccb8f151 Mon Sep 17 00:00:00 2001
From: joseph <joseph.garrone.gj@gmail.com>
Date: Sat, 28 Oct 2017 21:35:31 +0200
Subject: [PATCH] fix ice server DNS resolve
---
coreapi/nat_policy.c | 3 +++
coreapi/proxy.c | 1 +
2 files changed, 4 insertions(+)
Hi Linphone team,
I would like to notify you that there is a bug in linphone coreapi that
cause the android version of linphone to crash after remote provisioning.
Here is the crash dump:
********** Crash dump: **********
Build fingerprint: 'samsung/jfltexx/jflte:4.4.2/KOT49H/I9505XXUGNJ8:user/release-keys'
pid: 20955, tid: 20964, name: FinalizerDaemon >>> com.linphone.android <<<
@garronej
garronej / raspbian_linux_headers.txt
Last active May 20, 2018 07:44
installing linux header for raspbian
sudo apt-get install raspberrypi-kernel-headers
VOILA! nothing else to do!
if it does not work:
https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/
find the headers for the distribution: uname -r
Write a program that take a text as input and display the top 15
most used words alongside with they repective appearance.
e.g:
Input: "aa aa aa bb cc aa aa cc "
Output:
1. "aa" -> 5
2. "cc" -> 2
3. "bb" -> 1
@garronej
garronej / git.js
Created October 26, 2018 13:30
Fix for npm git on cygwin
//File @ /cygdrive/c/Program Files/nodejs/node_modules/npm/node_modules/pacote/lib/util/git.js
'use strict'
const BB = require('bluebird')
const cp = require('child_process')
const execFileAsync = BB.promisify(cp.execFile, {
multiArgs: true
@garronej
garronej / multiple_interfaces_on_ec2.txt
Last active February 20, 2019 17:17
Setup EC2 instance with two network interfaces.
>>> See comments
src: https://unix.stackexchange.com/questions/4420/reply-on-same-interface-as-incoming
Detailed infos: http://irp.nain-t.net/doku.php/100iproute:020_iproute2
type Ret<T> = T extends (...args: any) => Promise<infer R> ? R : (T extends (...args: any) => infer R ? R : any);
Hi,
We are going to require large quantity of 3G modem and we
are looking for establishing a trust relationship with a single supplier.
Our hard requirements are:
-Modems must implement standard Huawei AT command interface.
-It must be possible to place voice calls and send SMSs.
-Modems should be unlocked.