Skip to content

Instantly share code, notes, and snippets.

View lfurrea's full-sized avatar

Luis Urrea lfurrea

  • Simple Communication Services
  • USA
View GitHub Profile
@lfurrea
lfurrea / blank.json
Created April 17, 2015 23:24
Kibana Blank Dashboard
{
"title": "New Dashboard",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0
@lfurrea
lfurrea / FSSofia
Created September 27, 2012 18:43
Pacemaker LSB resource
#!/bin/sh
#
# Description: Starting / stopping FreeSWITCH Sofia SIP profiles
# and send a 'sofia recover' after all profiles are started
#
# Author: Leon de Rooij <leon@scarlet-internet.nl>
# License: BSD
# Copyright: (C) 2010 Leon de Rooij
FS_CLI_PROG='/usr/local/freeswitch/bin/fs_cli'
@lfurrea
lfurrea / crm_mon
Created September 28, 2012 14:38
Monitor Cluster Resources
============
Last updated: Fri Sep 28 10:59:28 2012
Stack: Heartbeat
Current DC: freeswitch-dev (a2a664c3-94b4-4b06-b664-c2aeebb23bba) - partition with quorum
Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b
2 Nodes configured, 1 expected votes
1 Resources configured.
============
Online: [ freeswitch-dev ubuntu-v20z ]
@lfurrea
lfurrea / crm_mon
Created September 28, 2012 17:57
Monitoring Cluster Resources: crm_mon output
============
Last updated: Thu Oct 4 20:38:16 2012
Stack: openais
Current DC: ubuntu-v20z - partition with quorum
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
2 Nodes configured, 2 expected votes
1 Resources configured.
============
Online: [ ubuntu-v20z freeswitch-dev ]
@lfurrea
lfurrea / corosync.conf
Created October 4, 2012 23:36
Corosync config file
# Please read the openais.conf.5 manual page
totem {
version: 2
# How long before declaring a token lost (ms)
token: 3000
# How many token retransmits before forming a new configuration
token_retransmits_before_loss_const: 10
@lfurrea
lfurrea / corosync.conf
Created October 4, 2012 23:39
Corosync config file (secondary node)
# Please read the openais.conf.5 manual page
totem {
version: 2
# How long before declaring a token lost (ms)
token: 3000
# How many token retransmits before forming a new configuration
token_retransmits_before_loss_const: 10
grep -h "'[[:digit:]]\{4\}'\sis now Lagged" full*| tr -s ' ' ' '|cut -d' ' -f1,2,3,11 > atas-middle
grep -h "'[[:digit:]]\{7,8\}'\sis now Lagged" full*| tr -s ' ' ' '|cut -d' ' -f1,2,3,11 > callmyway-middle
joinn by separator ->source-middle
perl -pe 's/\[(.*)\s(.*)\s(.*)\]\s\((.*)ms/$1-$2-$3 $4/;' source-middle > source
cat plot-load.conf |gnuplot
<!-- route1.html -->
<h1>Route 1</h1>
<hr/>
<a href="#/route1/list">Show List</a>
<div ui-view></div>
<!-- route1.list.html -->
<h3>List of Route 1 Items</h3>
<ul>
<li ng-repeat="item in items">{{item}}</li>
</ul>
$(function () {
$.plot("#placeholder", [{
label: "Abiertos",
data: abiertos
}, {
label: "Cerrados",
data: cerrados
}], {
series: {