Skip to content

Instantly share code, notes, and snippets.

View ssinyagin's full-sized avatar

Stanislav Sinyagin ssinyagin

View GitHub Profile
@ssinyagin
ssinyagin / fs_cpu_usage
Created March 2, 2014 04:50
FreeSWITCH CPU usage on Atom N570
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 / voyage.log
Created March 7, 2012 17:52
Voyage-current 20120307 vmstat problems
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 June 21, 2012 18:08
BetterNetworks torrus patch
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 June 24, 2012 00:13
FreePyBX working directory
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 August 1, 2012 16:06
Linaro boot on CVJI-E212
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 August 4, 2012 20:04
/etc/init.d/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
@ssinyagin
ssinyagin / Kazoo_d64eff45_crash.log
Created August 16, 2012 19:24
Kazoo d64eff45 crash
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 August 18, 2012 23:02
Kazoo fails to boot, chef_solo ca38950c3b
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]
@ssinyagin
ssinyagin / kz02_squeese.log
Created August 29, 2012 18:58
kazoo on debian
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
@ssinyagin
ssinyagin / syslog.log
Created September 30, 2012 11:01
Winkstart failing to get account details
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_resource:74 (<0.599.0>) OPTIONS: /v1/accounts/896f0df4b4412e98ed82ef1b0bb24170?_=1349002744219
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_util:371 (<0.599.0>) mod accounts has params [<<"896f0df4b4412e98ed82ef1b0bb24170">>]
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_util:119 (<0.599.0>) undefined content type when getting req data, assuming application/json
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_util:290 (<0.599.0>) request had no payload
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|crossbar_bindings:462 (<0.599.0>) exact match <<"v1_resource.allowed_methods.accounts">> to <<"v1_resource.allowed_methods.accounts">>
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_util:330 (<0.599.0>) sticking with method OPTIONS
Sep 30 12:58:24 kz02 2600hz[2097]: |b34296dd2916c76ac9b4c6ee8f27e709|v1_resource:146 (<0.599