Skip to content

Instantly share code, notes, and snippets.

Mix.install([
{:ortex, "== 0.1.9"},
:req,
{:nx, "== 0.7.0"},
{:membrane_core, "~> 1.0"},
{:membrane_file_plugin, "~> 0.17.0"},
{:membrane_portaudio_plugin, "~> 0.19.2"},
{:membrane_ffmpeg_swresample_plugin, "~> 0.20.2"},
{:membrane_mp3_mad_plugin, "~> 0.18.3"},
{:membrane_mp3_lame_plugin, "~> 0.18.2"}
@alishir
alishir / takeshiba_webmeeting.rst
Created March 29, 2022 04:38 — forked from voluntas/takeshiba_webmeeting.rst
WebRTC SFU Sora の紹介と WebRTC と WebTransport の現状について
Thread 17 (Thread 0x7fc4e63ff700 (LWP 15132)):
#0 0x00007fc59a46800c in futex_wait_cancelable (private=0, expected=0, futex_word=0x56100bdbc83c)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 0x00007fc59a46800c in __pthread_cond_wait_common (abstime=0x0, mutex=0x56100bdbc848, cond=0x56100bdbc810)
at pthread_cond_wait.c:502
#2 0x00007fc59a46800c in __pthread_cond_wait (cond=0x56100bdbc810, mutex=0x56100bdbc848) at pthread_cond_wait.c:655
#3 0x0000561009dc570b in ()
#4 0x000056100992ca91 in ()
#5 0x000056100992d7e8 in ()
#6 0x0000561009dc4f0a in ()
@alishir
alishir / daemon.pl
Created December 5, 2021 06:20
Daemonize perl script
#!/usr/bin/perl
# https://newbedev.com/how-can-i-run-a-perl-script-as-a-system-daemon-in-linux
# apt-get install libproc-daemon-perl
use strict;
use warnings;
use Proc::Daemon;
Proc::Daemon::Init;
@alishir
alishir / .gitignore
Created November 20, 2021 12:50 — forked from smoser/.gitignore
cloud-init ubuntu nocloud example with network config
*.img
*.raw
# clear MBR
dd if=/dev/sdOld of=/dev/sdNew bs=512 count=1
# replicate sdOld partition table
sfdisk -d /dev/sdOld | sfdisk /dev/sdNew
# add new disk to RAID
mdadm --manage /dev/md12X --add /dev/sdNewX
mount /dev/centos/root /mnt/custom
-module(tcp_to_mqtt).
-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/3]).
-include_lib("kernel/include/logger.hrl").
start_link(Ref, _Socket, Transport, Opts) ->
Pid = spawn_link(?MODULE, init, [Ref, Transport, Opts]),
class MyService : Service() {
companion object {
const val TAG = "MyService"
const val CHNNEL_ID = "my-service"
}
override fun onCreate() {
super.onCreate()
Log.i(TAG, "onCreate")
// create notification channel for API 26+
@alishir
alishir / opensips.txt
Created June 1, 2019 15:30
opensips multiple destination initial request.
+------+ +--------+ +-----+ +-----+
| UA_1 | |opensips| | UA2 | | UA3 |
+--+---+ +---+----+ +--+--+ +--+--+
| INVITE | | |
+-----------> | INVITE | |
| +---------> | |
| | | |
| | INVITE | |
| +---------------------> |
| | OK | |
@alishir
alishir / Subfolder to git repo.md
Last active May 29, 2016 07:24 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule