Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repoSource: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo| +------+ +--------+ +-----+ +-----+ | |
| | UA_1 | |opensips| | UA2 | | UA3 | | |
| +--+---+ +---+----+ +--+--+ +--+--+ | |
| | INVITE | | | | |
| +-----------> | INVITE | | | |
| | +---------> | | | |
| | | | | | |
| | | INVITE | | | |
| | +---------------------> | | |
| | | OK | | |
| 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+ |
| -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]), |
| # 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 |
| *.img | |
| *.raw |
| #!/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; |
| 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 () |
| 日時: | 2022-03-28 |
|---|---|
| 作: | voluntas |
| バージョン: | 2022.4 |
| URL: | https://voluntas.github.io/ |
| 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"} |