Skip to content

Instantly share code, notes, and snippets.

Stanislav Sinyagin ssinyagin

Block or report user

Report or block ssinyagin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ssinyagin
ssinyagin / fs_cpu_usage
Created Mar 2, 2014
FreeSWITCH CPU usage on Atom N570
View fs_cpu_usage
root@atom02:~# top
top - 05:51:44 up 17:21, 1 user, load average: 0.05, 0.07, 0.05
Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.4 us, 0.2 sy, 0.0 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 2062460 total, 305540 used, 1756920 free, 57668 buffers
KiB Swap: 4167676 total, 0 used, 4167676 free, 197616 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2285 freeswit -2 -10 44764 17m 5396 S 28.8 0.9 24:02.54 freeswitch
4005 root 20 0 4524 1396 1024 R 0.7 0.1 0:00.03 top
@ssinyagin
ssinyagin / freeswitch-arm.patch
Last active Aug 29, 2015
FreeSWITCH patch for ARM architecture
View freeswitch-arm.patch
diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh
index 7458934..c525bf7 100755
--- a/debian/bootstrap.sh
+++ b/debian/bootstrap.sh
@@ -298,7 +298,7 @@ Build-Depends:
# bootstrapping
automake (>= 1.9), autoconf, ${libtool_dep},
# core build
- dpkg-dev (>= 1.15.8.12), gcc (>= 4:4.4.5), g++ (>= 4:4.4.5),
+ dpkg-dev (>= 1.15.8.12), gcc-4.7, g++-4.7,
@ssinyagin
ssinyagin / voyage.log
Created Mar 7, 2012
Voyage-current 20120307 vmstat problems
View voyage.log
PC Engines ALIX.2 v0.99h
640 KB Base Memory
261120 KB Extended Memory
01F0 Master 044A ELITE PRO CF CARD 8GB
Phys C/H/S 15490/16/63 Log C/H/S 971/255/63 LBA
GRUB Loading stage2...
GNU GRUB version 0.97 (640K lower / 261120K upper memory)
@ssinyagin
ssinyagin / gist:2967467
Created Jun 21, 2012
BetterNetworks torrus patch
View gist:2967467
diff --git a/src/perllib/Torrus/DevDiscover/BetterNetworks.pm b/src/perllib/Torrus/DevDiscover/BetterNetworks.pm
index 5786f89..185141c 100644
--- a/src/perllib/Torrus/DevDiscover/BetterNetworks.pm
+++ b/src/perllib/Torrus/DevDiscover/BetterNetworks.pm
@@ -53,23 +53,29 @@ our %sensorTypes =
(
1 => {
'comment' => 'Temperature sensor',
+ 'legend' => 'Temperature',
},
@ssinyagin
ssinyagin / gist:2980650
Created Jun 24, 2012
FreePyBX working directory
View gist:2980650
bash-4.1$ cd /usr/local/www/
bash-4.1$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: FreePyBX/development.ini
# modified: FreePyBX/freepybx/websetup.py
#
@ssinyagin
ssinyagin / CVJI-E212_linaro_boot
Created Aug 1, 2012
Linaro boot on CVJI-E212
View CVJI-E212_linaro_boot
U-Boot SPL 2011.09-00000-g8d13bc8-dirty (Jul 26 2012 - 04:00:50)
MMC: SUNXI SD/MMC: 0
Loading U-Boot... OK!
Jumping to U-Boot...
U-Boot 2011.09-00000-g8d13bc8-dirty (Jul 26 2012 - 04:00:50) Allwinner Technology
CPU: SUNXI Family
@ssinyagin
ssinyagin / pciback
Created Aug 4, 2012
/etc/init.d/pciback
View pciback
#!/bin/bash
### BEGIN INIT INFO
# Provides: pciback
# Required-Start: $syslog $remote_fs xen
# Required-Stop: $syslog $remote_fs xen
# Should-Start: drbd iscsi
# Should-Stop: drbd iscsi
# X-Start-Before: xendomains
# X-Stop-After:
# Default-Start: 2 3 4 5
View Kazoo_d64eff45_crash.log
root@738-15:/opt/kazoo/whistle_apps# ./start-dev.sh
heart_beat_kill_pid = 15346
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:14:14] [rq:14] [async-threads:8] [kernel-poll:true]
Eshell V5.8.4 (abort with ^G)
(whistle_apps@738-15.vm.clodoserver.ru)1> 19:22:36.657 [info] Application lager started on node 'whistle_apps@738-15.vm.clodoserver.ru'
19:22:36.735 [info] Application crypto started on node 'whistle_apps@738-15.vm.clodoserver.ru'
19:22:36.784 [info] Application gproc started on node 'whistle_apps@738-15.vm.clodoserver.ru'
19:22:36.860 [info] Application amqp_client started on node 'whistle_apps@738-15.vm.clodoserver.ru'
19:22:36.876 [info] loaded amqp manager configuration from '/opt/kazoo/whistle_apps/../lib/whistle_amqp-1.0.0/priv/startup.config'
@ssinyagin
ssinyagin / log.txt
Created Aug 18, 2012
Kazoo fails to boot, chef_solo ca38950c3b
View log.txt
After chef finished:
[root@kz01 kazoo_install]# ps axf
PID TTY STAT TIME COMMAND
2 ? S 0:00 [kthreadd]
3 ? S 0:00 \_ [migration/0]
4 ? S 0:00 \_ [ksoftirqd/0]
5 ? S 0:00 \_ [migration/0]
6 ? S 0:00 \_ [watchdog/0]
7 ? S 0:00 \_ [migration/1]
View kz02_squeese.log
mkdir -p /var/lib/xen/images/debian/squeeze
cd /var/lib/xen/images/debian/squeeze
wget http://mirror.switch.ch/ftp/mirror/debian/dists/squeeze/main/installer-amd64/current/images/netboot/xen/initrd.gz
wget http://mirror.switch.ch/ftp/mirror/debian/dists/squeeze/main/installer-amd64/current/images/netboot/xen/vmlinuz
lvcreate -L 20G -n kz02 VG0
xm create /etc/xen/manual/kz02-install.cfg -c
You can’t perform that action at this time.