Skip to content

Instantly share code, notes, and snippets.

View ssinyagin's full-sized avatar

Stanislav Sinyagin ssinyagin

View GitHub Profile
@ssinyagin
ssinyagin / cli.log
Created November 1, 2012 22:26
freeswitch sbc: gateway variables
2012-11-01 23:24:52.507287 [NOTICE] switch_channel.c:951 New Channel sofia/outside/0794070224@212.117.203.41 [f4b8691e-2472-11e2-bd2e-b701f648768e]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_session.c:905 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_session.c:905 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_NEW
2012-11-01 23:24:52.507287 [DEBUG] switch_core_state_machine.c:416 (sofia/outside/0794070224@212.117.203.41) State NEW
2012-11-01 23:24:52.527245 [DEBUG] sofia.c:6282 Channel sofia/outside/0794070224@212.117.203.41 entering state [received][100]
2012-11-01 23:24:52.527245 [DEBUG] sofia.c:6293 Remote SDP:
v=0
o=Sippy 25552224 0 IN IP4 212.117.203.41
<!-- 7390: VUC conference -->
<extension name="forward_7390">
<condition field="destination_number" expression="^7390$">
<action application="bridge" data="sofia/external/200901@login.zipdx.com"/>
</condition>
</extension>
<!-- 7394: VUC conference via e164.org -->
<extension name="forward_7394">
<condition field="destination_number" expression="^7394$">
@ssinyagin
ssinyagin / atom01
Created October 12, 2013 02:48
FreeSWITCH performance on Atom CPU
root@atom01:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU N2600 @ 1.60GHz
stepping : 1
microcode : 0x10d
cpu MHz : 600.000
cache size : 512 KB
@ssinyagin
ssinyagin / atom02
Created October 12, 2013 02:52
FreeSWITCH performance on Atom CPU
root@atom02:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N570 @ 1.66GHz
stepping : 10
microcode : 0x107
cpu MHz : 1000.000
cache size : 512 KB
<extension name="playdigits_and_echo">
<condition field="destination_number" expression="^test01$">
<action application="answer"/>
<action application="sleep" data="500"/>
<action application="say" data="en name_spelled iterated 123456789"/>
<action application="playback" data="ivr/ivr-hello.wav"/>
<action application="say" data="en name_spelled iterated 123456789"/>
<action application="delay_echo" data="1000"/>
</condition>
</extension>
@ssinyagin
ssinyagin / native languages of people whom I know
Last active May 7, 2016 04:49
native languages of people whom I know
Russian
Ukrainian
Belarussian
German
Swiss German
French
Italian
Dutch
English
Hungarian
root@scw01:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.5.7-std-4 (travis@scaleway-qa.pr-712) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP Tue Jul 12 11:00:06 UTC 2016
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine model: Scaleway - C1 Computing
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writealloc
@ssinyagin
ssinyagin / git_raw_examples.pl
Last active November 29, 2016 12:51
Working with Git::Raw (libgit2)
use strict;
use warnings;
use Git::Raw;
use IO::File;
use Data::Dumper;
my $dir = '/opt/t3/t/repo';
my $repo = Git::Raw::Repository->init($dir, 0);
@ssinyagin
ssinyagin / git_raw_excercise.pl
Last active December 5, 2016 14:35
git_raw_excercise.pl
use strict;
use warnings;
use Git::Raw;
use IO::File;
use Data::Dumper;
use File::Path qw(make_path remove_tree);
my $dir = '/tmp/gittest';
@ssinyagin
ssinyagin / gen_config_single_bridged_client
Last active April 19, 2018 23:53
OpenVPN_against_censorship
#!/bin/sh
OVPNCFG=/etc/openvpn
RSADIR=/etc/openvpn/easy-rsa
IPV6PFX=fda5:e1a5:a801
if [ $# -ne 4 ]; then
echo "Usage: $0 VPNID FQDN NETNUM PORT" 1>&2
exit 1
fi