Skip to content

Instantly share code, notes, and snippets.

View garronej's full-sized avatar
🧢
Bluehat

Joseph Garrone garronej

🧢
Bluehat
View GitHub Profile

Setup Orange PI PC with debian + linux headers

  • Download armbian https://dl.armbian.com/orangepipc/archive/Armbian_5.69_Orangepipc_Debian_stretch_next_4.19.13.7z
    we need to download a version for wich we know we have the linux headers in the depos. 4.19.13 is such a version.
    If the link is dead a copy can be found in garronej/releases.

  • Use BalenaEtcher to flash the image on a micro SD card.

  • The default login is root 1234. When overwriting the root user password and dont forget that the key maping is is not yet configured.

type Ret<T> = T extends (...args: any) => Promise<infer R> ? R : (T extends (...args: any) => infer R ? R : any);
@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
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 / 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%;
From 13f1c2f80e373f95979757b4436dc600ccb8f151 Mon Sep 17 00:00:00 2001
From: joseph <[email protected]>
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 / 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
@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 / 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: