This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feedparser | |
def json_make_normal(obj): | |
if type(obj) in [str, unicode, int, float, bool, dict, set, list, tuple]: | |
return obj | |
try: return dict(obj) | |
except: pass | |
try: return list(obj) | |
except: pass | |
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port=1463 | |
max_msg_per_second=2000000 | |
check_interval=3 | |
<store> | |
category=default | |
type=buffer | |
target_write_size=20480 | |
max_write_interval=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) | |
Copyright (C) 2006 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1". | |
(gdb) handle SIG33 pass nostop noprint | |
Signal Stop Print Pass to program Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) | |
Copyright (C) 2006 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1". | |
(gdb) handle SIG33 pass nostop noprint | |
Signal Stop Print Pass to program Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1". | |
(gdb) run | |
Starting program: /usr/sbin/scribed | |
[Thread debugging using libthread_db enabled] | |
[Fri May 15 14:38:37 2009] "STATUS: STARTING" | |
[Fri May 15 14:38:37 2009] "STATUS: configuring" | |
[Fri May 15 14:38:37 2009] "got configuration data from file </usr/local/scribe/scribe.conf>" | |
[Fri May 15 14:38:37 2009] "CATEGORY : default" | |
[Fri May 15 14:38:37 2009] "Creating default store" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== | |
== Build and install | |
== | |
http://silassewell.googlecode.com/files/python-line_profiler-1.0-0.1.b2.fc10.src.rpm | |
== | |
== Create file "test.py" with the following content | |
== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU gdb (GDB) Fedora (6.8.50.20090302-33.fc11) | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** stack smashing detected ***: /usr/sbin/scribed terminated | |
======= Backtrace: ========= | |
/lib64/libc.so.6(__fortify_fail+0x37)[0x37c5cf7537] | |
/lib64/libc.so.6(__fortify_fail+0x0)[0x37c5cf7500] | |
/usr/lib64/libthriftnb.so.0(_ZN6apache6thrift6server18TNonblockingServer11handleEventEis+0x135)[0x3433c080f5] | |
/usr/lib64/libevent-1.4.so.2(event_base_loop+0x401)[0x34330065f1] | |
/usr/sbin/scribed[0x436488] | |
/lib64/libc.so.6(__libc_start_main+0xfd)[0x37c5c1ea2d] | |
/usr/sbin/scribed[0x40b6b9] | |
======= Memory map: ======== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
brctl addbr br0 | |
brctl setfd br0 0 | |
ifconfig br0 172.20.0.1 netmask 255.255.255.0 | |
brctl addif br0 eth0 | |
brctl show br0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_list = [1, 2, 3] | |
server = 'localhost' |
OlderNewer