Skip to content

Instantly share code, notes, and snippets.

16*2 lcd screen:
+----------------+
|ABCDEFGHIJKLMNOP|
|QRSTUVWXYZ012345|
+----------------+
we use 15 chars per line as last is reserved for active flag or "scroll-down" hint '>'
there are 4 keys, up down, enter and esc
always, the first line is the active one
(operation: "enter" applies on it)
+----------------+
mysql> select count(job_rowid) from results_links group by job_rowid;
+------------------+
| count(job_rowid) |
+------------------+
| 342 |
| 9267 |
| 211 |
| 10054 |
| 9811 |
| 281 |
def main():
flag.Parse() // Scans the arg list and sets up flags
var s string = ""
for i= 0; i < flag.NArg(); i++:
if i > 0:
s += Space
s += flag.Arg(i)
if !*omitNewline:
#!/usr/bin/env python
import os
import tornado.httpserver
import tornado.ioloop
import tornado.web
class StreamHandler(tornado.web.RequestHandler):
@tornado.web.asynchronous
def get(self):
#self.set_header("Content-Type", "application/ogg+ogg")
#! /bin/sh
git add .
git commit -a
git push origin master
# oz list and oz dump
freeswitch@snaptrunk-02> oz list
+OK
span: 1 (smg_prid)
type: Sangoma (boost)
chan_count: 30
dialplan: XML
context: default
@zuriby
zuriby / gist:279884
Created January 18, 2010 08:30
Paul Buchheit: Summarize your life in one word:
>>> sum([ord(c) for c in "your life"])
911
>>> import ctypes
>>> ctypes.c_uint32(911)
c_uint(911L)
freeswitch@internal> 2010-01-07 11:20:04.960849 [DEBUG] sofia.c:4628 IP 87.68.244.32 Rejected by acl "domains". Falling back to Digest auth.
2010-01-07 11:20:05.94471 [DEBUG] sofia.c:4628 IP 87.68.244.32 Rejected by acl "domains". Falling back to Digest auth.
2010-01-07 11:20:05.94471 [NOTICE] switch_channel.c:602 New Channel sofia/internal/[email protected] [d75dfa40-fb6d-11de-9911-b7e694ca6e0b]
2010-01-07 11:20:05.94471 [DEBUG] switch_core_state_machine.c:398 (sofia/internal/[email protected]) Running State Change CS_NEW
2010-01-07 11:20:05.94471 [DEBUG] sofia.c:3289 Channel sofia/internal/[email protected] entering state [received][100]
2010-01-07 11:20:05.94471 [DEBUG] sofia.c:3296 Remote SDP:
v=0
o=- 60424594 60424594 IN IP4 20.0.0.122
s=-
c=IN IP4 87.68.244.32
### IPTel incoming invite recording
DEBUG: 01:26:01.088 pjsua_core.c RX 1746 bytes Request msg INVITE/cseq=7942 (rdata0046B234) from UDP 213.192.59.75:5060:
INVITE sip:[email protected]:5060;transport=UDP SIP/2.0
Record-Route: <sip:213.192.59.75;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>
Record-Route: <sip:213.192.59.75;transport=tcp;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>
<configuration name="openzap.conf" description="OpenZAP Configuration">
<settings>
<param name="debug" value="0"/>
<!--<param name="hold-music" value="$${moh_uri}"/>-->
<!--<param name="enable-analog-option" value="call-swap"/>-->
<!--<param name="enable-analog-option" value="3-way"/>-->
</settings>
<libpri_spans>
<span name="PRI_1">
<!-- Log Levels: none, alert, crit, err, warning, notice, info, debug -->