Skip to content

Instantly share code, notes, and snippets.

View moises-silva's full-sized avatar
🐢
Taking it easy

Moises Silva moises-silva

🐢
Taking it easy
View GitHub Profile
@moises-silva
moises-silva / keybase.md
Created November 25, 2019 10:19
keybase.md

Keybase proof

I hereby claim:

  • I am moises-silva on github.
  • I am moisessilva (https://keybase.io/moisessilva) on keybase.
  • I have a public key whose fingerprint is D29E A5A2 D869 946A 00DD 921B 60AE 8F48 E251 5DA0

To claim this, I am signing this object:

@moises-silva
moises-silva / dahdi_loop.c
Created November 23, 2019 02:13
DAHDI Loop Driver with CAS Support
/*
* Loopback DAHDI Driver for DAHDI Telephony interface
* Emulates real dahdi devices allowing testing on hosts
* which dont have real dahdi card - usefule for testing.
*
* Copyright (C) 2007, Druid Software Ltd.
*
* Used timer tick from dahdi_dummy
*
* All rights reserved.
@moises-silva
moises-silva / mod_bert.c
Created August 29, 2018 12:25
Latest mod_bert version
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-2011, Anthony Minessale II <anthm@freeswitch.org>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
@moises-silva
moises-silva / memdebug.diff
Created March 28, 2016 21:33
salt-master memory debugging
diff -Nur /root/salt/cli/daemons.py /usr/lib/python2.7/site-packages/salt/cli/daemons.py
--- /root/salt/cli/daemons.py 2016-03-26 17:30:02.823000000 -0400
+++ /usr/lib/python2.7/site-packages/salt/cli/daemons.py 2016-03-26 18:36:16.112000000 -0400
@@ -43,6 +43,9 @@
from salt.utils import migrations
from salt.utils import kinds
+from pympler import muppy
+from pympler import summary
+
(gdb) thread apply all bt
Thread 3 (Thread 0x7f723713e700 (LWP 21333)):
#0 0x00000039a78eb57d in poll () from /lib64/libc.so.6
#1 0x0000000000446102 in ArchNetworkBSD::pollSocket(IArchNetwork::PollEntry*, int, double) ()
#2 0x00000000004afb50 in SocketMultiplexer::serviceThread(void*) ()
#3 0x00000000004b29bb in Thread::threadFunc(void*) ()
#4 0x000000000044a098 in ArchMultithreadPosix::doThreadFunc(ArchThreadImpl*) ()
#5 0x000000000044a17b in ArchMultithreadPosix::threadFunc(void*) ()
#6 0x00000039a7c07c65 in start_thread () from /lib64/libpthread.so.0
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: add 39 bytes to clipboard 1 format: 0
DEBUG: close clipboard 1
DEBUG: lost clipboard 1 ownership at time -59047147
DEBUG: lost clipboard 1 ownership at -59047147
INFO: screen "sigchld" grabbed clipboard 1 from "sigsegv.local"
DEBUG: send grab clipboard 1 to "sigsegv.local"
INFO: switch from "sigchld" to "sigsegv.local" at 1919,534
INFO: leaving screen