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 / resilio.txt
Last active August 4, 2022 19:43
Install resilio-sync on raspberry pi
mkdir /var/lib/resilio-sync/ && chown pi:pi -R /var/lib/resilio-sync
mkdir /etc/resilio-sync
nano /etc/resilio-sync/config.json
{
"storage_path" : "/var/lib/resilio-sync/",
"pid_file" : "/var/run/resilio-sync/sync.pid",
"webui" :
@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
@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
@garronej
garronej / install_speex.txt
Last active May 30, 2021 10:45
Install speex and speexdsp
aptitude remove libspeex-dev libspeexdsp-dev libspeex1
rm /usr/lib/arm-linux-gnueabihf/libspeex*
use prefix: /usr
Install:
https://github.com/xiph/speexdsp
Install:
@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 / 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
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 <<<
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(+)
@garronej
garronej / bootstrap.css
Last active April 10, 2023 22:25
Static web assets semasim
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
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